Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

sched: s/sched_latency/sched_min_granularity

runtime limit and wakeup granularity used to be a function of
granularity and that was incorrect changed to sched_latency.

Fix this to make wakeup granularity a function of min-granularity,
and the runtime limit equal to latency.

Signed-off-by: Ingo Molnar <mingo@elte.hu>

+2 -2
+2 -2
kernel/sched.c
··· 4921 4921 if (sysctl_sched_latency > limit) 4922 4922 sysctl_sched_latency = limit; 4923 4923 4924 - sysctl_sched_runtime_limit = sysctl_sched_latency * 5; 4925 - sysctl_sched_wakeup_granularity = sysctl_sched_latency / 2; 4924 + sysctl_sched_runtime_limit = sysctl_sched_latency; 4925 + sysctl_sched_wakeup_granularity = sysctl_sched_min_granularity / 2; 4926 4926 } 4927 4927 4928 4928 #ifdef CONFIG_SMP