diff options
Diffstat (limited to 'include/asm-cris/system.h')
-rw-r--r-- | include/asm-cris/system.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/asm-cris/system.h b/include/asm-cris/system.h index fea0e8d57cb5..5bcfe5a10907 100644 --- a/include/asm-cris/system.h +++ b/include/asm-cris/system.h | |||
@@ -66,6 +66,21 @@ static inline unsigned long __xchg(unsigned long x, volatile void * ptr, int siz | |||
66 | return x; | 66 | return x; |
67 | } | 67 | } |
68 | 68 | ||
69 | #include <asm-generic/cmpxchg-local.h> | ||
70 | |||
71 | /* | ||
72 | * cmpxchg_local and cmpxchg64_local are atomic wrt current CPU. Always make | ||
73 | * them available. | ||
74 | */ | ||
75 | #define cmpxchg_local(ptr, o, n) \ | ||
76 | ((__typeof__(*(ptr)))__cmpxchg_local_generic((ptr), (unsigned long)(o),\ | ||
77 | (unsigned long)(n), sizeof(*(ptr)))) | ||
78 | #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) | ||
79 | |||
80 | #ifndef CONFIG_SMP | ||
81 | #include <asm-generic/cmpxchg.h> | ||
82 | #endif | ||
83 | |||
69 | #define arch_align_stack(x) (x) | 84 | #define arch_align_stack(x) (x) |
70 | 85 | ||
71 | void default_idle(void); | 86 | void default_idle(void); |