sparc64 read_barrier_depends

From: Dipankar Sarma (dipankar@in.ibm.com)
Date: Wed Oct 23 2002 - 05:38:28 EST


Hi Andrew,

I missed sparc64 when I broke up read_barrier_depends in -mm
and sent to Linus. Please apply this to your tree until Linus is back
and I can fix it.

Thanks

-- 
Dipankar Sarma  <dipankar@in.ibm.com> http://lse.sourceforge.net
Linux Technology Center, IBM Software Lab, Bangalore, India.

diff -urN linux-2.5.44-base/include/asm-sparc64/system.h linux-2.5.44-rbd/include/asm-sparc64/system.h --- linux-2.5.44-base/include/asm-sparc64/system.h Sat Oct 19 09:31:07 2002 +++ linux-2.5.44-rbd/include/asm-sparc64/system.h Mon Oct 21 15:03:19 2002 @@ -84,6 +84,7 @@ membar("#LoadLoad | #LoadStore | #StoreStore | #StoreLoad"); #define rmb() membar("#LoadLoad") #define wmb() membar("#StoreStore") +#define read_barrier_depends() do { } while(0) #define set_mb(__var, __value) \ do { __var = __value; membar("#StoreLoad | #StoreStore"); } while(0) #define set_wmb(__var, __value) \ @@ -93,10 +94,12 @@ #define smp_mb() mb() #define smp_rmb() rmb() #define smp_wmb() wmb() +#define smp_read_barrier_depends() read_barrier_depends() #else #define smp_mb() __asm__ __volatile__("":::"memory"); #define smp_rmb() __asm__ __volatile__("":::"memory"); #define smp_wmb() __asm__ __volatile__("":::"memory"); +#define smp_read_barrier_depends() do { } while(0) #endif #define flushi(addr) __asm__ __volatile__ ("flush %0" : : "r" (addr) : "memory") - 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/



This archive was generated by hypermail 2b29 : Wed Oct 23 2002 - 22:01:03 EST