From: Rik van Riel Date: Tue, 1 Feb 2011 14:47:15 +0000 (-0500) Subject: sched: Check the right ->nr_running in yield_task_fair() X-Git-Tag: v2.6.39-rc1~509^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=725e7580aaf98e9f7b22b8ccfc640ad0c09e2b08;p=pandora-kernel.git sched: Check the right ->nr_running in yield_task_fair() With CONFIG_FAIR_GROUP_SCHED, each task_group has its own cfs_rq. Yielding to a task from another cfs_rq may be worthwhile, since a process calling yield typically cannot use the CPU right now. Therefor, we want to check the per-cpu nr_running, not the cgroup local one. Signed-off-by: Rik van Riel Signed-off-by: Peter Zijlstra LKML-Reference: <20110201094715.798c4f86@annuminas.surriel.com> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed