Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 176467
b: refs/heads/master
c: fa4062e
h: refs/heads/master
i:
  176465: 370ce39
  176463: b605c23
v: v3
  • Loading branch information
Thomas Gleixner committed Dec 14, 2009
1 parent bc862fd commit 049a69a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9c1721aa4994f6625decbd915241f3a94ee2fe67
refs/heads/master: fa4062e7eae8f484c90b9cdd850b5df39ab0e5a0
4 changes: 2 additions & 2 deletions trunk/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 049a69a

Please sign in to comment.