2003-03-05 07:24:31

by Miles Bader

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

diff -ruN -X../cludes linux-2.5.64-moo.orig/include/asm-v850/system.h linux-2.5.64-moo/include/asm-v850/system.h
--- linux-2.5.64-moo.orig/include/asm-v850/system.h 2003-01-22 10:13:12.000000000 +0900
+++ linux-2.5.64-moo/include/asm-v850/system.h 2003-03-05 14:54:59.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))))