diff options
author | Borislav Petkov <bp@amd64.org> | 2011-08-05 14:01:16 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2011-08-05 15:26:49 -0400 |
commit | a110b5ec7371592eac856ac5c22dc7b518952d44 (patch) | |
tree | fc2ec00868158cd2a3613a30d88e775a6d00205f /arch/x86/kernel/cpu/common.c | |
parent | dfb09f9b7ab03fd367740e541a5caf830ed56726 (diff) |
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/common.c')
-rw-r--r-- | arch/x86/kernel/cpu/common.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c index 22a073d7fbff..8ed394a8eb6e 100644 --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c | |||
@@ -681,6 +681,9 @@ static void __init early_identify_cpu(struct cpuinfo_x86 *c) | |||
681 | filter_cpuid_features(c, false); | 681 | filter_cpuid_features(c, false); |
682 | 682 | ||
683 | setup_smep(c); | 683 | setup_smep(c); |
684 | |||
685 | if (this_cpu->c_bsp_init) | ||
686 | this_cpu->c_bsp_init(c); | ||
684 | } | 687 | } |
685 | 688 | ||
686 | void __init early_cpu_init(void) | 689 | void __init early_cpu_init(void) |