From: Wanpeng Li Date: Thu, 30 Oct 2014 22:39:31 +0000 (+0800) Subject: sched/rt: Clean up check_preempt_equal_prio() X-Git-Tag: omap-for-v3.20/drop-legacy-3517~162^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=308a623a40ce168eb234ea82c2bd13ff85a098d9;p=pandora-kernel.git sched/rt: Clean up check_preempt_equal_prio() This patch checks if current can be pushed/pulled somewhere else in advance to make logic clear, the same behavior as dl class. - If current can't be migrated, useless to reschedule, let's hope task can move out. - If task is migratable, so let's not schedule it and see if it can be pushed or pulled somewhere else. Signed-off-by: Wanpeng Li Signed-off-by: Peter Zijlstra (Intel) Cc: Juri Lelli Cc: Kirill Tkhai Cc: Steven Rostedt Cc: Linus Torvalds Link: http://lkml.kernel.org/r/1414708776-124078-1-git-send-email-wanpeng.li@linux.intel.com Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed