KVM: Wake up waitqueue before calling get_cpu()
authorJan Blunck <jblunck@suse.de>
Tue, 7 Apr 2009 23:58:56 +0000 (23:58 +0000)
committerAvi Kivity <avi@redhat.com>
Wed, 10 Jun 2009 08:48:49 +0000 (11:48 +0300)
commit9b62e5b10ff0f98346bcbe4a4fe3a0ca8fa7be30
tree9170f5bce95041bc65630814d026db377beb2e25
parent14d0bc1f7c8226d5088e7182c3b53e0c7e91d1af
KVM: Wake up waitqueue before calling get_cpu()

This moves the get_cpu() call down to be called after we wake up the
waiters. Therefore the waitqueue locks can safely be rt mutex.

Signed-off-by: Jan Blunck <jblunck@suse.de>
Signed-off-by: Sven-Thorsten Dietrich <sven@thebigcorporation.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/x86.c