Commit 2c725188 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] ppc64: fix inline spinlocks

From: Anton Blanchard <anton@samba.org>

In _raw_spin_lock_flags we were branching to the wrong spot and would
restore random stuff to the MSR.
parent 4b796a9f
...@@ -103,7 +103,7 @@ static __inline__ void _raw_spin_lock_flags(spinlock_t *lock, ...@@ -103,7 +103,7 @@ static __inline__ void _raw_spin_lock_flags(spinlock_t *lock,
unsigned long tmp2; unsigned long tmp2;
__asm__ __volatile__( __asm__ __volatile__(
"b 2f # spin_lock\n\ "b 3f # spin_lock\n\
1: mfmsr %1\n\ 1: mfmsr %1\n\
mtmsrd %3,1\n\ mtmsrd %3,1\n\
2:" HMT_LOW 2:" HMT_LOW
......
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