]> xenbits.xensource.com Git - xen.git/commitdiff
x86/MCE: guard call to Intel-specific intel_get_extended_msrs()
authorSergiy Kibrik <Sergiy_Kibrik@epam.com>
Tue, 30 Apr 2024 06:32:03 +0000 (08:32 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 30 Apr 2024 06:32:03 +0000 (08:32 +0200)
Add check for CONFIG_INTEL build option to conditional call of this routine,
so that if Intel support is disabled the call would be eliminated.

No functional change intended.

Signed-off-by: Sergiy Kibrik <Sergiy_Kibrik@epam.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/cpu/mcheck/mce.c

index 28446859830d85c41700c63a0eb05936a4654a32..d179e6b0689428dc41a52a463b54a9912874eb98 100644 (file)
@@ -328,7 +328,8 @@ mcheck_mca_logout(enum mca_source who, struct mca_banks *bankmask,
                 ASSERT(mig);
                 mca_init_global(mc_flags, mig);
                 /* A hook here to get global extended msrs */
-                if ( boot_cpu_data.x86_vendor == X86_VENDOR_INTEL )
+                if ( IS_ENABLED(CONFIG_INTEL) &&
+                     boot_cpu_data.x86_vendor == X86_VENDOR_INTEL )
                     intel_get_extended_msrs(mig, mci);
             }
         }