The patch titled
     m68knommu: avoid unneccessary use of xchg() in set_mb()
has been removed from the -mm tree.  Its filename was
     m68knommu-avoid-unneccessary-use-of-xchg-in-set_mb.patch

This patch was dropped because it was merged into mainline or a subsystem tree

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: m68knommu: avoid unneccessary use of xchg() in set_mb()
From: Greg Ungerer <[EMAIL PROTECTED]>

Avoid unneccessary use of xchg() in set_mb().

Signed-off-by: Greg Ungerer <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---

 include/asm-m68knommu/system.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN 
include/asm-m68knommu/system.h~m68knommu-avoid-unneccessary-use-of-xchg-in-set_mb
 include/asm-m68knommu/system.h
--- 
a/include/asm-m68knommu/system.h~m68knommu-avoid-unneccessary-use-of-xchg-in-set_mb
+++ a/include/asm-m68knommu/system.h
@@ -104,7 +104,7 @@ asmlinkage void resume(void);
 #define mb()   asm volatile (""   : : :"memory")
 #define rmb()  asm volatile (""   : : :"memory")
 #define wmb()  asm volatile (""   : : :"memory")
-#define set_mb(var, value) do { xchg(&var, value); } while (0)
+#define set_mb(var, value)     ({ (var) = (value); wmb(); })
 
 #ifdef CONFIG_SMP
 #define smp_mb()       mb()
_

Patches currently in -mm which might be from [EMAIL PROTECTED] are

origin.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to