Commit fa4062e7eae8f484c90b9cdd850b5df39ab0e5a0
1 parent
9c1721aa49
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: Thomas Gleixner <tglx@linutronix.de> Acked-by: Peter Zijlstra <peterz@infradead.org> Acked-by: Ingo Molnar <mingo@elte.hu>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
lib/kernel_lock.c
... | ... | @@ -23,7 +23,7 @@ |
23 | 23 | * |
24 | 24 | * Don't use in new code. |
25 | 25 | */ |
26 | -static __cacheline_aligned_in_smp DEFINE_SPINLOCK(kernel_flag); | |
26 | +static __cacheline_aligned_in_smp DEFINE_RAW_SPINLOCK(kernel_flag); | |
27 | 27 | |
28 | 28 | |
29 | 29 | /* |
... | ... | @@ -82,7 +82,7 @@ |
82 | 82 | */ |
83 | 83 | do { |
84 | 84 | preempt_enable(); |
85 | - while (spin_is_locked(&kernel_flag)) | |
85 | + while (raw_spin_is_locked(&kernel_flag)) | |
86 | 86 | cpu_relax(); |
87 | 87 | preempt_disable(); |
88 | 88 | } while (!do_raw_spin_trylock(&kernel_flag)); |