Messages in this thread Patch in this message | | | Subject | Re: Plumbers: Tweaking scheduler policy micro-conf RFP | From | Peter Zijlstra <> | Date | Tue, 15 May 2012 14:27:25 +0200 |
| |
On Tue, 2012-05-15 at 14:23 +0200, Peter Zijlstra wrote: > -#else /* (CONFIG_SCHED_MC || CONFIG_SCHED_SMT) */ > static inline int find_new_ilb(int call_cpu) > { > return nr_cpu_ids; > } > -#endif
That was missing a hunk...
--- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -4524,6 +4524,11 @@ static struct { static inline int find_new_ilb(int call_cpu) { + int ilb = cpumask_first(nohz.idle_cpus_mask); + + if (ilb < nr_cpu_ids && idle_cpu(ilb)) + return ilb; + return nr_cpu_ids; }
| |