sched: Fix cross-sched-class wakeup preemption
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Sun, 31 Oct 2010 11:37:04 +0000 (12:37 +0100)
committerIngo Molnar <mingo@elte.hu>
Thu, 11 Nov 2010 13:37:23 +0000 (14:37 +0100)
Instead of dealing with sched classes inside each check_preempt_curr()
implementation, pull out this logic into the generic wakeup preemption
path.

This fixes a hang in KVM (and others) where we are waiting for the
stop machine thread to run ...

Reported-by: Markus Trippelsdorf <markus@trippelsdorf.de>
Tested-by: Marcelo Tosatti <mtosatti@redhat.com>
Tested-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <1288891946.2039.31.camel@laptop>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

No differences found