Skip to content

Commit

Permalink
[PATCH] sched: allow larger granularity
Browse files Browse the repository at this point in the history
Allow granularity up to 100 msecs, instead of 10 msecs.
(needed on larger boxes)

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Ingo Molnar authored and Linus Torvalds committed Jul 13, 2007
1 parent e127031 commit a5968df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -4778,7 +4778,7 @@ cpumask_t nohz_cpu_mask = CPU_MASK_NONE;
static inline void sched_init_granularity(void)
{
unsigned int factor = 1 + ilog2(num_online_cpus());
const unsigned long gran_limit = 10000000;
const unsigned long gran_limit = 100000000;

sysctl_sched_granularity *= factor;
if (sysctl_sched_granularity > gran_limit)
Expand Down

0 comments on commit a5968df

Please sign in to comment.