diff options
Diffstat (limited to 'include/asm-arm/system.h')
-rw-r--r-- | include/asm-arm/system.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/asm-arm/system.h b/include/asm-arm/system.h index 174ff52661b0..c19c5b009f71 100644 --- a/include/asm-arm/system.h +++ b/include/asm-arm/system.h | |||
@@ -282,17 +282,17 @@ static inline unsigned long __xchg(unsigned long x, volatile void *ptr, int size | |||
282 | #error SMP is not supported on this platform | 282 | #error SMP is not supported on this platform |
283 | #endif | 283 | #endif |
284 | case 1: | 284 | case 1: |
285 | local_irq_save(flags); | 285 | raw_local_irq_save(flags); |
286 | ret = *(volatile unsigned char *)ptr; | 286 | ret = *(volatile unsigned char *)ptr; |
287 | *(volatile unsigned char *)ptr = x; | 287 | *(volatile unsigned char *)ptr = x; |
288 | local_irq_restore(flags); | 288 | raw_local_irq_restore(flags); |
289 | break; | 289 | break; |
290 | 290 | ||
291 | case 4: | 291 | case 4: |
292 | local_irq_save(flags); | 292 | raw_local_irq_save(flags); |
293 | ret = *(volatile unsigned long *)ptr; | 293 | ret = *(volatile unsigned long *)ptr; |
294 | *(volatile unsigned long *)ptr = x; | 294 | *(volatile unsigned long *)ptr = x; |
295 | local_irq_restore(flags); | 295 | raw_local_irq_restore(flags); |
296 | break; | 296 | break; |
297 | #else | 297 | #else |
298 | case 1: | 298 | case 1: |