x86: Fix LOCK_PREFIX_HERE for uniprocessor build
authorH. Peter Anvin <hpa@zytor.com>
Thu, 29 Apr 2010 23:03:57 +0000 (16:03 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 29 Apr 2010 23:08:54 +0000 (16:08 -0700)
Checkin b3ac891b67bd4b1fc728d1c784cad1212dea433d:
x86: Add support for lock prefix in alternatives

... did not define LOCK_PREFIX_HERE in the case of a uniprocessor
build.  As a result, it would cause any of the usages of this macro to
fail on a uniprocessor build.  Fix this by defining LOCK_PREFIX_HERE
as a null string.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Cc: Luca Barbieri <luca@luca-barbieri.com>
LKML-Reference: <1267005265-27958-2-git-send-email-luca@luca-barbieri.com>

arch/x86/include/asm/alternative.h

index 55fee12cea6defc065d76841bef48fcd442058eb..e29a6c9bba005ecc8fc242c5adbdc3c9e70b78c3 100644 (file)
@@ -38,6 +38,7 @@
 #define LOCK_PREFIX LOCK_PREFIX_HERE "\n\tlock; "
 
 #else /* ! CONFIG_SMP */
+#define LOCK_PREFIX_HERE ""
 #define LOCK_PREFIX ""
 #endif