提交 26799a63 编写于 作者: R Ravikiran G Thirumalai 提交者: Ingo Molnar

x86: fix incorrect __read_mostly on _boot_cpu_pda

The pda rework (commit 3461b0af)
to remove static boot cpu pdas introduced a performance bug.

_boot_cpu_pda is the actual pda used by the boot cpu and is definitely
not "__read_mostly" and ended up polluting the read mostly section with
writes.  This bug caused regression of about 8-10% on certain syscall
intensive workloads.
Signed-off-by: NRavikiran Thirumalai <kiran@scalex86.org>
Acked-by: NMike Travis <travis@sgi.com>
Cc: <stable@kernel.org>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 b58602a4
......@@ -27,7 +27,7 @@
#include <asm/trampoline.h>
/* boot cpu pda */
static struct x8664_pda _boot_cpu_pda __read_mostly;
static struct x8664_pda _boot_cpu_pda;
#ifdef CONFIG_SMP
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册