aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/asm-generic/cmpxchg-local.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/asm-generic/cmpxchg-local.h b/include/asm-generic/cmpxchg-local.h
index b2ba2fc8829a..9793123ea1c9 100644
--- a/include/asm-generic/cmpxchg-local.h
+++ b/include/asm-generic/cmpxchg-local.h
@@ -20,7 +20,7 @@ static inline unsigned long __cmpxchg_local_generic(volatile void *ptr,
20 if (size == 8 && sizeof(unsigned long) != 8) 20 if (size == 8 && sizeof(unsigned long) != 8)
21 wrong_size_cmpxchg(ptr); 21 wrong_size_cmpxchg(ptr);
22 22
23 local_irq_save(flags); 23 raw_local_irq_save(flags);
24 switch (size) { 24 switch (size) {
25 case 1: prev = *(u8 *)ptr; 25 case 1: prev = *(u8 *)ptr;
26 if (prev == old) 26 if (prev == old)
@@ -41,7 +41,7 @@ static inline unsigned long __cmpxchg_local_generic(volatile void *ptr,
41 default: 41 default:
42 wrong_size_cmpxchg(ptr); 42 wrong_size_cmpxchg(ptr);
43 } 43 }
44 local_irq_restore(flags); 44 raw_local_irq_restore(flags);
45 return prev; 45 return prev;
46} 46}
47 47
@@ -54,11 +54,11 @@ static inline u64 __cmpxchg64_local_generic(volatile void *ptr,
54 u64 prev; 54 u64 prev;
55 unsigned long flags; 55 unsigned long flags;
56 56
57 local_irq_save(flags); 57 raw_local_irq_save(flags);
58 prev = *(u64 *)ptr; 58 prev = *(u64 *)ptr;
59 if (prev == old) 59 if (prev == old)
60 *(u64 *)ptr = new; 60 *(u64 *)ptr = new;
61 local_irq_restore(flags); 61 raw_local_irq_restore(flags);
62 return prev; 62 return prev;
63} 63}
64 64