Re: Plumbers: Tweaking scheduler policy micro-conf RFP

From: Peter Zijlstra
Date: Tue May 15 2012 - 08:27:34 EST


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;
}


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/