diff options
author | Jan Beulich <JBeulich@suse.com> | 2014-11-04 03:26:42 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2014-11-04 14:13:28 -0500 |
commit | 2c773dd31fbacbbb6425f8a9d3f97e0010272368 (patch) | |
tree | 6f531b6c8527ec2adf2b892dc1b9e98be9526407 /arch/x86/include/asm/processor.h | |
parent | fb7183ef3c016d9067ff83f3ff2455be1818f902 (diff) |
x86: Convert a few more per-CPU items to read-mostly ones
Both this_cpu_off and cpu_info aren't getting modified post boot, yet
are being accessed on enough code paths that grouping them with other
frequently read items seems desirable. For cpu_info this at the same
time implies removing the cache line alignment (which afaict became
pointless when it got converted to per-CPU data years ago).
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Link: http://lkml.kernel.org/r/54589BD20200007800044A84@mail.emea.novell.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/include/asm/processor.h')
-rw-r--r-- | arch/x86/include/asm/processor.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h index eb71ec794732..3aeb31cc0511 100644 --- a/arch/x86/include/asm/processor.h +++ b/arch/x86/include/asm/processor.h | |||
@@ -127,7 +127,7 @@ struct cpuinfo_x86 { | |||
127 | /* Index into per_cpu list: */ | 127 | /* Index into per_cpu list: */ |
128 | u16 cpu_index; | 128 | u16 cpu_index; |
129 | u32 microcode; | 129 | u32 microcode; |
130 | } __attribute__((__aligned__(SMP_CACHE_BYTES))); | 130 | }; |
131 | 131 | ||
132 | #define X86_VENDOR_INTEL 0 | 132 | #define X86_VENDOR_INTEL 0 |
133 | #define X86_VENDOR_CYRIX 1 | 133 | #define X86_VENDOR_CYRIX 1 |
@@ -151,7 +151,7 @@ extern __u32 cpu_caps_cleared[NCAPINTS]; | |||
151 | extern __u32 cpu_caps_set[NCAPINTS]; | 151 | extern __u32 cpu_caps_set[NCAPINTS]; |
152 | 152 | ||
153 | #ifdef CONFIG_SMP | 153 | #ifdef CONFIG_SMP |
154 | DECLARE_PER_CPU_SHARED_ALIGNED(struct cpuinfo_x86, cpu_info); | 154 | DECLARE_PER_CPU_READ_MOSTLY(struct cpuinfo_x86, cpu_info); |
155 | #define cpu_data(cpu) per_cpu(cpu_info, cpu) | 155 | #define cpu_data(cpu) per_cpu(cpu_info, cpu) |
156 | #else | 156 | #else |
157 | #define cpu_info boot_cpu_data | 157 | #define cpu_info boot_cpu_data |