]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - block/blk-iolatency.c
drm/amd/powerplay: update the interface for getting dpm full scale clock frequency
[linux.git] / block / blk-iolatency.c
index d973c38ee4fd65b502af755e491e1a4bb830c0c3..0fff7b56df0e4d0fa0f82be4102f3ceb03735034 100644 (file)
@@ -917,6 +917,9 @@ static size_t iolatency_pd_stat(struct blkg_policy_data *pd, char *buf,
        unsigned long long avg_lat;
        unsigned long long cur_win;
 
+       if (!blkcg_debug_stats)
+               return 0;
+
        if (iolat->ssd)
                return iolatency_ssd_stat(iolat, buf, size);