summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/percpu.h
diff options
context:
space:
mode:
authorBrian Gerst <brgerst@gmail.com>2009-01-21 09:26:05 +0100
committerTejun Heo <tj@kernel.org>2009-01-21 09:26:05 +0100
commit299e26992a737804e13e74fdb97cdab470ed19ac (patch)
tree65796f4ef75b1915509225bf9a1c2f3cde48ba0a /arch/x86/include/asm/percpu.h
parentx86: clean up gdt_page definition (diff)
downloadlinux-299e26992a737804e13e74fdb97cdab470ed19ac.tar.xz
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/include/asm/percpu.h')
-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(); \
} \