Commit 2126c312 authored by Thomas Gleixner's avatar Thomas Gleixner

powerpc: Disable preemption across hypervisor call

Otherwise the HV magic gets confused if we are preempted.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 32ff9169
...@@ -86,8 +86,10 @@ void __raw_spin_unlock_wait(raw_spinlock_t *lock) ...@@ -86,8 +86,10 @@ void __raw_spin_unlock_wait(raw_spinlock_t *lock)
{ {
while (lock->slock) { while (lock->slock) {
HMT_low(); HMT_low();
preempt_disable();
if (SHARED_PROCESSOR) if (SHARED_PROCESSOR)
__spin_yield(lock); __spin_yield(lock);
preempt_enable();
} }
HMT_medium(); HMT_medium();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment