aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/spinlock.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/spinlock.c')
-rw-r--r--kernel/spinlock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/spinlock.c b/kernel/spinlock.c
index d48143eafbfd..476c3741511b 100644
--- a/kernel/spinlock.c
+++ b/kernel/spinlock.c
@@ -215,7 +215,7 @@ void __lockfunc _##op##_lock(locktype##_t *lock) \
215 if (!(lock)->break_lock) \ 215 if (!(lock)->break_lock) \
216 (lock)->break_lock = 1; \ 216 (lock)->break_lock = 1; \
217 while (!op##_can_lock(lock) && (lock)->break_lock) \ 217 while (!op##_can_lock(lock) && (lock)->break_lock) \
218 cpu_relax(); \ 218 _raw_##op##_relax(&lock->raw_lock); \
219 } \ 219 } \
220 (lock)->break_lock = 0; \ 220 (lock)->break_lock = 0; \
221} \ 221} \
@@ -237,7 +237,7 @@ unsigned long __lockfunc _##op##_lock_irqsave(locktype##_t *lock) \
237 if (!(lock)->break_lock) \ 237 if (!(lock)->break_lock) \
238 (lock)->break_lock = 1; \ 238 (lock)->break_lock = 1; \
239 while (!op##_can_lock(lock) && (lock)->break_lock) \ 239 while (!op##_can_lock(lock) && (lock)->break_lock) \
240 cpu_relax(); \ 240 _raw_##op##_relax(&lock->raw_lock); \
241 } \ 241 } \
242 (lock)->break_lock = 0; \ 242 (lock)->break_lock = 0; \
243 return flags; \ 243 return flags; \