summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/cpu/cpu.h
diff options
context:
space:
mode:
authorBorislav Petkov <bp@amd64.org>2011-08-05 20:01:16 +0200
committerH. Peter Anvin <hpa@linux.intel.com>2011-08-05 21:26:49 +0200
commita110b5ec7371592eac856ac5c22dc7b518952d44 (patch)
treefc2ec00868158cd2a3613a30d88e775a6d00205f /arch/x86/kernel/cpu/cpu.h
parentx86, amd: Avoid cache aliasing penalties on AMD family 15h (diff)
downloadlinux-a110b5ec7371592eac856ac5c22dc7b518952d44.tar.xz
linux-a110b5ec7371592eac856ac5c22dc7b518952d44.zip
x86: Add a BSP cpu_dev helper
Add a function ptr to struct cpu_dev which is destined to be run only once on the BSP during boot. Signed-off-by: Borislav Petkov <borislav.petkov@amd.com> Link: http://lkml.kernel.org/r/20110805180116.GB26217@aftab Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86/kernel/cpu/cpu.h')
-rw-r--r--arch/x86/kernel/cpu/cpu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/cpu.h b/arch/x86/kernel/cpu/cpu.h
index e765633f210e..1b22dcc51af4 100644
--- a/arch/x86/kernel/cpu/cpu.h
+++ b/arch/x86/kernel/cpu/cpu.h
@@ -18,6 +18,7 @@ struct cpu_dev {
struct cpu_model_info c_models[4];
void (*c_early_init)(struct cpuinfo_x86 *);
+ void (*c_bsp_init)(struct cpuinfo_x86 *);
void (*c_init)(struct cpuinfo_x86 *);
void (*c_identify)(struct cpuinfo_x86 *);
unsigned int (*c_size_cache)(struct cpuinfo_x86 *, unsigned int);