From: Peter Zijlstra Date: Tue, 31 May 2011 08:49:20 +0000 (+0200) Subject: sched: Fix schedstat.nr_wakeups_migrate X-Git-Tag: v3.0-rc3~40^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f339b9dc1f03591761d5d930800db24bc0eda1e1;p=pandora-kernel.git sched: Fix schedstat.nr_wakeups_migrate While looking over the code I found that with the ttwu rework the nr_wakeups_migrate test broke since we now switch cpus prior to calling ttwu_stat(), hence the test is always true. Cure this by passing the migration state in wake_flags. Also move the whole test under CONFIG_SMP, its hard to migrate tasks on UP :-) Signed-off-by: Peter Zijlstra Link: http://lkml.kernel.org/n/tip-pwwxl7gdqs5676f1d4cx6pj7@git.kernel.org Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed