diff options
Diffstat (limited to 'include/asm-arm/system.h')
-rw-r--r-- | include/asm-arm/system.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/asm-arm/system.h b/include/asm-arm/system.h index 28425c473e71..6335de9a2bb3 100644 --- a/include/asm-arm/system.h +++ b/include/asm-arm/system.h | |||
@@ -363,6 +363,21 @@ static inline unsigned long __xchg(unsigned long x, volatile void *ptr, int size | |||
363 | extern void disable_hlt(void); | 363 | extern void disable_hlt(void); |
364 | extern void enable_hlt(void); | 364 | extern void enable_hlt(void); |
365 | 365 | ||
366 | #include <asm-generic/cmpxchg-local.h> | ||
367 | |||
368 | /* | ||
369 | * cmpxchg_local and cmpxchg64_local are atomic wrt current CPU. Always make | ||
370 | * them available. | ||
371 | */ | ||
372 | #define cmpxchg_local(ptr, o, n) \ | ||
373 | ((__typeof__(*(ptr)))__cmpxchg_local_generic((ptr), (unsigned long)(o),\ | ||
374 | (unsigned long)(n), sizeof(*(ptr)))) | ||
375 | #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) | ||
376 | |||
377 | #ifndef CONFIG_SMP | ||
378 | #include <asm-generic/cmpxchg.h> | ||
379 | #endif | ||
380 | |||
366 | #endif /* __ASSEMBLY__ */ | 381 | #endif /* __ASSEMBLY__ */ |
367 | 382 | ||
368 | #define arch_align_stack(x) (x) | 383 | #define arch_align_stack(x) (x) |