Skip to content

Commit

Permalink
sched: s/sched_latency/sched_min_granularity
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ingo Molnar committed Aug 25, 2007
1 parent a3ce8ea commit 50c4663
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -4921,8 +4921,8 @@ static inline void sched_init_granularity(void)
if (sysctl_sched_latency > limit)
sysctl_sched_latency = limit;

sysctl_sched_runtime_limit = sysctl_sched_latency * 5;
sysctl_sched_wakeup_granularity = sysctl_sched_latency / 2;
sysctl_sched_runtime_limit = sysctl_sched_latency;
sysctl_sched_wakeup_granularity = sysctl_sched_min_granularity / 2;
}

#ifdef CONFIG_SMP
Expand Down

0 comments on commit 50c4663

Please sign in to comment.