Commit fa4062e7 authored by Thomas Gleixner's avatar Thomas Gleixner

bkl: Fixup core_lock fallout

kernel_lock.c emits a warning because a raw spinlock function is used
with a spinlock. Convert BKL to raw_spinlock.
Signed-off-by: default avatarThomas Gleixner <>
Acked-by: default avatarPeter Zijlstra <>
Acked-by: default avatarIngo Molnar <>
parent 9c1721aa
......@@ -23,7 +23,7 @@
* Don't use in new code.
static __cacheline_aligned_in_smp DEFINE_SPINLOCK(kernel_flag);
static __cacheline_aligned_in_smp DEFINE_RAW_SPINLOCK(kernel_flag);
......@@ -82,7 +82,7 @@ static inline void __lock_kernel(void)
do {
while (spin_is_locked(&kernel_flag))
while (raw_spin_is_locked(&kernel_flag))
} while (!do_raw_spin_trylock(&kernel_flag));
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