lkml.org 
[lkml]   [2009]   [May]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[BUG FIX] Make x86_32 uni-processor Atomic ops, Atomic
Date
Found in the bit-rot for 32-bit, x86, Uni-processor builds:

diff --git a/arch/x86/include/asm/alternative.h b/arch/x86/include/asm/alternative.h
index f6aa18e..3c790ef 100644
--- a/arch/x86/include/asm/alternative.h
+++ b/arch/x86/include/asm/alternative.h
@@ -35,7 +35,7 @@
"661:\n\tlock; "

#else /* ! CONFIG_SMP */
-#define LOCK_PREFIX ""
+#define LOCK_PREFIX "\n\tlock; "
#endif

/* This must be included *after* the definition of LOCK_PREFIX */
Submitted: M. S. Zick


\
 
 \ /
  Last update: 2009-05-22 18:43    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site