aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/kvm.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/kvm.c')
-rw-r--r--arch/x86/kernel/kvm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/kvm.c b/arch/x86/kernel/kvm.c
index 5b2300b818af..a37bda38d205 100644
--- a/arch/x86/kernel/kvm.c
+++ b/arch/x86/kernel/kvm.c
@@ -154,7 +154,7 @@ void kvm_async_pf_task_wait(u32 token, int interrupt_kernel)
154 154
155 for (;;) { 155 for (;;) {
156 if (!n.halted) 156 if (!n.halted)
157 prepare_to_swait(&n.wq, &wait, TASK_UNINTERRUPTIBLE); 157 prepare_to_swait_exclusive(&n.wq, &wait, TASK_UNINTERRUPTIBLE);
158 if (hlist_unhashed(&n.link)) 158 if (hlist_unhashed(&n.link))
159 break; 159 break;
160 160
@@ -188,7 +188,7 @@ static void apf_task_wake_one(struct kvm_task_sleep_node *n)
188 if (n->halted) 188 if (n->halted)
189 smp_send_reschedule(n->cpu); 189 smp_send_reschedule(n->cpu);
190 else if (swq_has_sleeper(&n->wq)) 190 else if (swq_has_sleeper(&n->wq))
191 swake_up(&n->wq); 191 swake_up_one(&n->wq);
192} 192}
193 193
194static void apf_task_wake_all(void) 194static void apf_task_wake_all(void)