ppc fix
[lttv.git] / ltt-usertrace / ltt / atomic-ppc.h
index eeafd505836ec339b0e28af79e8b5de4fc2313ba..ecd1f7571226054c8f0aec7638d49902e9b55fa1 100644 (file)
@@ -7,8 +7,6 @@
 
 typedef struct { volatile int counter; } atomic_t;
 
-#ifdef __KERNEL__
-
 #define ATOMIC_INIT(i) { (i) }
 
 #define atomic_read(v)         ((v)->counter)
@@ -16,7 +14,7 @@ typedef struct { volatile int counter; } atomic_t;
 
 extern void atomic_clear_mask(unsigned long mask, unsigned long *addr);
 
-#ifdef CONFIG_SMP
+#if 0 // We only do operation on one CPU at a time (LTT)
 #define SMP_SYNC       "sync"
 #define SMP_ISYNC      "\n\tisync"
 #else
@@ -210,5 +208,4 @@ static __inline__ int atomic_dec_if_positive(atomic_t *v)
 #define smp_mb__before_atomic_inc()    __MB
 #define smp_mb__after_atomic_inc()     __MB
 
-#endif /* __KERNEL__ */
 #endif /* _ASM_PPC_ATOMIC_H_ */
This page took 0.023906 seconds and 4 git commands to generate.