[PATCH][v850] Get rid of bogus definitions of `smp_...' barrier macros on the v850

Miles Bader (miles@lsi.nec.co.jp)
Tue, 8 Apr 2003 18:27:40 +0900 (JST)


diff -ruN -X../cludes linux-2.5.67-moo.orig/include/asm-v850/system.h linux-2.5.67-moo/include/asm-v850/system.h
--- linux-2.5.67-moo.orig/include/asm-v850/system.h 2003-01-22 10:13:12.000000000 +0900
+++ linux-2.5.67-moo/include/asm-v850/system.h 2003-04-08 10:39:42.000000000 +0900
@@ -72,17 +72,10 @@
#define set_mb(var, value) set_rmb (var, value)
#define set_wmb(var, value) do { var = value; wmb (); } while (0)

-#ifdef CONFIG_SMP
#define smp_mb() mb ()
#define smp_rmb() rmb ()
#define smp_wmb() wmb ()
#define smp_read_barrier_depends() read_barrier_depends()
-#else
-#define smp_mb() barrier ()
-#define smp_rmb() barrier ()
-#define smp_wmb() barrier ()
-#define smp_read_barrier_depends() ((void)0)
-#endif

#define xchg(ptr, with) \
((__typeof__ (*(ptr)))__xchg ((unsigned long)(with), (ptr), sizeof (*(ptr))))
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/