summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/special_insns.h
diff options
context:
space:
mode:
authorJan Beulich <JBeulich@suse.com>2013-05-29 16:29:12 +0400
committerIngo Molnar <mingo@kernel.org>2013-05-31 15:09:17 +0400
commit1d10f6ee602ec5a4bd0c1606ba5f38277da432e1 (patch)
tree78400a0f9b9d13313982e3f6537195e9401b8a0c /arch/x86/include/asm/special_insns.h
parentdcdbe33add56cb659ebf21fb9b6577507e21d952 (diff)
downloadlinux-1d10f6ee602ec5a4bd0c1606ba5f38277da432e1.tar.xz
x86: __force_order doesn't need to be an actual variable
It being static causes over a dozen instances to be scattered across the kernel image, with non of them ever being referenced in any way. Making the variable extern without ever defining it works as well - all we need is to have the compiler think the variable is being accessed. Signed-off-by: Jan Beulich <jbeulich@suse.com> Link: http://lkml.kernel.org/r/51A610B802000078000D99A0@nat28.tlf.novell.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/include/asm/special_insns.h')
-rw-r--r--arch/x86/include/asm/special_insns.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/special_insns.h b/arch/x86/include/asm/special_insns.h
index 41fc93a2e225..2f4d924fe6c9 100644
--- a/arch/x86/include/asm/special_insns.h
+++ b/arch/x86/include/asm/special_insns.h
@@ -16,7 +16,7 @@ static inline void native_clts(void)
* all loads stores around it, which can hurt performance. Solution is to
* use a variable and mimic reads and writes to it to enforce serialization
*/
-static unsigned long __force_order;
+extern unsigned long __force_order;
static inline unsigned long native_read_cr0(void)
{