x86: fix incorrect __read_mostly on _boot_cpu_pda
commitfce821c44244459592f22bec255e217795de4c02
authorRavikiran G Thirumalai <kiran@scalex86.org>
Wed, 31 Dec 2008 21:44:46 +0000 (31 13:44 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 18 Jan 2009 18:35:29 +0000 (18 10:35 -0800)
tree4169a1ad30d1a5807f43ef2f6b13eef8ba3c6d3a
parent11fea7ace7b0086f853854df8653d1c8f90a9fb9
x86: fix incorrect __read_mostly on _boot_cpu_pda

commit 26799a63110dcbe81291ea53178f6b4810d07424 upstream.

The pda rework (commit 3461b0af025251bbc6b3d56c821c6ac2de6f7209)
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: Ravikiran Thirumalai <kiran@scalex86.org>
Acked-by: Mike Travis <travis@sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kernel/head64.c