x86/amd: only call setup_force_cpu_cap for boot CPU
authorRoss Lagerwall <ross.lagerwall@citrix.com>
Thu, 11 Aug 2022 15:44:26 +0000 (17:44 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 11 Aug 2022 15:44:26 +0000 (17:44 +0200)
commit31b41ce858c8bd5159212d40969f8e0b7124bbf0
tree53e373268afcfcd79d465ca26a87f27fb192acd5
parentb874e47eb13feb75be3ee7b5dc4ae9c97d80d774
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>
xen/arch/x86/cpu/amd.c