x86: Fix mwait_play_dead() faulting on mwait-incapable cpus
authorAvi Kivity <avi@redhat.com>
Mon, 30 May 2011 12:23:57 +0000 (08:23 -0400)
committerIngo Molnar <mingo@elte.hu>
Mon, 30 May 2011 12:37:54 +0000 (14:37 +0200)
commit4f3c125c7420c85eaff627145557e392a871922d
treed8e664f6e30e034bd81a595f09f1a33618da9cbb
parent598e887d8b01655780c81cc86a9e7820ed091580
x86: Fix mwait_play_dead() faulting on mwait-incapable cpus

A logic error in mwait_play_dead() causes the kernel to use
mwait even on cpus which don't support it, such as KVM virtual
cpus.

Introduced by:

  349c004e3d31: x86: A fast way to check capabilities of the current cpu

Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=36222
Reported-by: Török Edwin <edwintorok@gmail.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: Tejun Heo <tj@kernel.org>
Link: http://lkml.kernel.org/r/1306758237-9327-1-git-send-email-avi@redhat.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/smpboot.c