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>
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);
}
}