diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/kernel_lock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/kernel_lock.c b/lib/kernel_lock.c index fdd23cdb53f3..b135d04aa48a 100644 --- a/lib/kernel_lock.c +++ b/lib/kernel_lock.c | |||
@@ -23,7 +23,7 @@ | |||
23 | * | 23 | * |
24 | * Don't use in new code. | 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 @@ static inline void __lock_kernel(void) | |||
82 | */ | 82 | */ |
83 | do { | 83 | do { |
84 | preempt_enable(); | 84 | preempt_enable(); |
85 | while (spin_is_locked(&kernel_flag)) | 85 | while (raw_spin_is_locked(&kernel_flag)) |
86 | cpu_relax(); | 86 | cpu_relax(); |
87 | preempt_disable(); | 87 | preempt_disable(); |
88 | } while (!do_raw_spin_trylock(&kernel_flag)); | 88 | } while (!do_raw_spin_trylock(&kernel_flag)); |