Skip to content

Commit

Permalink
bkl: Fixup core_lock fallout
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Peter Zijlstra <[email protected]>
Acked-by: Ingo Molnar <[email protected]>
  • Loading branch information
KAGA-KOKO committed Dec 14, 2009
1 parent 9c1721a commit fa4062e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/kernel_lock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);


/*
Expand Down Expand Up @@ -82,7 +82,7 @@ static inline void __lock_kernel(void)
*/
do {
preempt_enable();
while (spin_is_locked(&kernel_flag))
while (raw_spin_is_locked(&kernel_flag))
cpu_relax();
preempt_disable();
} while (!do_raw_spin_trylock(&kernel_flag));
Expand Down

0 comments on commit fa4062e

Please sign in to comment.