Re: [PATCH v1] sched: fix nohz idle load balancer issues

From: Srivatsa Vaddagiri
Date: Mon Sep 26 2011 - 08:02:08 EST


* Srivatsa Vaddagiri <vatsa@xxxxxxxxxxxxxxxxxx> [2011-09-26 17:20:49]:

> @@ -4695,8 +4719,11 @@ static inline int nohz_kick_needed(struc
> second_pick_cpu = atomic_read(&nohz.second_pick_cpu);
>
> if (first_pick_cpu < nr_cpu_ids && first_pick_cpu != cpu &&
> - second_pick_cpu < nr_cpu_ids && second_pick_cpu != cpu)
> + second_pick_cpu < nr_cpu_ids && second_pick_cpu != cpu) {
> + if (rq->nr_running > 1)
> + return 1;
> return 0;
> + }

I should have added a comment to explain this change ..will do it in
next version (along with any other changes suggested).

- vatsa

--
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/