lkml.org 
[lkml]   [2003]   [Mar]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] Get rid of bogus definitions of `smp_...' barrier macros on the v850
Date
From
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))))
-
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/
\
 
 \ /
  Last update: 2005-03-22 13:33    [W:0.031 / U:0.660 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site