sched/rt: Clean up check_preempt_equal_prio()
authorWanpeng Li <wanpeng.li@linux.intel.com>
Thu, 30 Oct 2014 22:39:31 +0000 (06:39 +0800)
committerIngo Molnar <mingo@kernel.org>
Tue, 4 Nov 2014 06:17:52 +0000 (07:17 +0100)
commit308a623a40ce168eb234ea82c2bd13ff85a098d9
treede29313f91c8c98c353e422cdaf423b6494dcbb8
parent75e23e49dbdd86aace375f599062aa67483a001b
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 <wanpeng.li@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Juri Lelli <juri.lelli@arm.com>
Cc: Kirill Tkhai <ktkhai@parallels.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/1414708776-124078-1-git-send-email-wanpeng.li@linux.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/rt.c