提交 1d10f6ee 编写于 作者: J Jan Beulich 提交者: Ingo Molnar

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: NJan Beulich <jbeulich@suse.com>
Link: http://lkml.kernel.org/r/51A610B802000078000D99A0@nat28.tlf.novell.comSigned-off-by: NIngo Molnar <mingo@kernel.org>
上级 dcdbe33a
...@@ -16,7 +16,7 @@ static inline void native_clts(void) ...@@ -16,7 +16,7 @@ static inline void native_clts(void)
* all loads stores around it, which can hurt performance. Solution is to * 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 * 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) static inline unsigned long native_read_cr0(void)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册