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>
This commit is contained in:
committed by
H. Peter Anvin
parent
dfb09f9b7a
commit
a110b5ec73
@ -681,6 +681,9 @@ static void __init early_identify_cpu(struct cpuinfo_x86 *c)
|
||||
filter_cpuid_features(c, false);
|
||||
|
||||
setup_smep(c);
|
||||
|
||||
if (this_cpu->c_bsp_init)
|
||||
this_cpu->c_bsp_init(c);
|
||||
}
|
||||
|
||||
void __init early_cpu_init(void)
|
||||
|
Reference in New Issue
Block a user