[PATCH] cpu hotplug: add hotplug versions of cpu_notifier
[powerpc.git] / include / asm-h8300 / atomic.h
index d891541..21f5442 100644 (file)
@@ -95,6 +95,8 @@ static inline int atomic_cmpxchg(atomic_t *v, int old, int new)
        return ret;
 }
 
+#define atomic_xchg(v, new) (xchg(&((v)->counter), new))
+
 static inline int atomic_add_unless(atomic_t *v, int a, int u)
 {
        int ret;