]> xenbits.xensource.com Git - xen.git/commit
x86/amd: only call setup_force_cpu_cap for boot CPU
authorRoss Lagerwall <ross.lagerwall@citrix.com>
Mon, 15 Aug 2022 14:13:54 +0000 (16:13 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 15 Aug 2022 14:13:54 +0000 (16:13 +0200)
commitbde3b13043e31fd757c44bcec182b0ff1fe36d22
tree147c5b53052bb4db450e6a7259edb6ee1f9e7f1d
parentd8a693019845caa4e216bcac10f9501a814c99ae
x86/amd: only call setup_force_cpu_cap for boot CPU

This should only be called for the boot CPU to avoid calling _init code
after it has been unloaded.

Fixes: 062868a5a8b4 ("x86/amd: Work around CLFLUSH ordering on older parts")
Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
master commit: 31b41ce858c8bd5159212d40969f8e0b7124bbf0
master date: 2022-08-11 17:44:26 +0200
xen/arch/x86/cpu/amd.c