summaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorBrian Gerst <brgerst@gmail.com>2009-01-21 17:26:05 +0900
committerTejun Heo <tj@kernel.org>2009-01-21 17:26:05 +0900
commit299e26992a737804e13e74fdb97cdab470ed19ac (patch)
tree65796f4ef75b1915509225bf9a1c2f3cde48ba0a /arch/x86
parent06deef892c7327992434917fb6592c233430803d (diff)
downloadlinux-299e26992a737804e13e74fdb97cdab470ed19ac.tar.gz
linux-299e26992a737804e13e74fdb97cdab470ed19ac.tar.bz2
linux-299e26992a737804e13e74fdb97cdab470ed19ac.zip
x86: fix percpu_write with 64-bit constants
Impact: slightly better code generation for percpu_to_op() The processor will sign-extend 32-bit immediate values in 64-bit operations. Use the 'e' constraint ("32-bit signed integer constant, or a symbolic reference known to fit that range") for 64-bit constants. Signed-off-by: Brian Gerst <brgerst@gmail.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/include/asm/percpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/percpu.h b/arch/x86/include/asm/percpu.h
index ce980db5e59d..0b64af4f13ac 100644
--- a/arch/x86/include/asm/percpu.h
+++ b/arch/x86/include/asm/percpu.h
@@ -75,7 +75,7 @@ do { \
case 8: \
asm(op "q %1,"__percpu_arg(0) \
: "+m" (var) \
- : "r" ((T__)val)); \
+ : "re" ((T__)val)); \
break; \
default: __bad_percpu_size(); \
} \