summaryrefslogtreecommitdiff
path: root/arch/x86/kernel/cpu/common.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2024-04-09 10:28:41 +0300
committerIngo Molnar <mingo@kernel.org>2024-04-09 10:28:41 +0300
commit0e6ebfd163645d300fdf4abedd1718195ad293bc (patch)
tree510614aa8a43af846e27c7581adda801eaf03fc6 /arch/x86/kernel/cpu/common.c
parent186d7ef52c1f0c41450dedbdf6d6325d0a84e4c5 (diff)
parentfec50db7033ea478773b159e0e2efb135270e3b7 (diff)
downloadlinux-0e6ebfd163645d300fdf4abedd1718195ad293bc.tar.xz
Merge tag 'v6.9-rc3' into x86/cpu, to pick up fixes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/kernel/cpu/common.c')
-rw-r--r--arch/x86/kernel/cpu/common.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c
index 9a34651d24e7..07f1ac7f0f4a 100644
--- a/arch/x86/kernel/cpu/common.c
+++ b/arch/x86/kernel/cpu/common.c
@@ -2304,6 +2304,8 @@ void arch_smt_update(void)
void __init arch_cpu_finalize_init(void)
{
+ struct cpuinfo_x86 *c = this_cpu_ptr(&cpu_info);
+
identify_boot_cpu();
select_idle_routine();
@@ -2342,6 +2344,13 @@ void __init arch_cpu_finalize_init(void)
fpu__init_system();
fpu__init_cpu();
+ /*
+ * Ensure that access to the per CPU representation has the initial
+ * boot CPU configuration.
+ */
+ *c = boot_cpu_data;
+ c->initialized = true;
+
alternative_instructions();
if (IS_ENABLED(CONFIG_X86_64)) {