]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - kernel/profile.c
sched/debug: Make schedstats a runtime tunable that is disabled by default
[mirror_ubuntu-bionic-kernel.git] / kernel / profile.c
index 99513e1160e518d322f6d0ce0f346e6da9fcbbf0..51369697466e36ba52af710863376d4847d43e36 100644 (file)
@@ -59,6 +59,7 @@ int profile_setup(char *str)
 
        if (!strncmp(str, sleepstr, strlen(sleepstr))) {
 #ifdef CONFIG_SCHEDSTATS
+               force_schedstat_enabled();
                prof_on = SLEEP_PROFILING;
                if (str[strlen(sleepstr)] == ',')
                        str += strlen(sleepstr) + 1;