x86: relax some CPU checks for non-64 bit CPUs

These checks were guarding against non-64 bit CPU models but they are
not supported by Xen anymore so the checks are no longer needed.

The switch statement was removed from mcheck_init()
to support Intel family 18/19.

Suggested-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Kevin Lampis <kevin.lampis@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
Kevin Lampis authored and Jan Beulich committed 2026-03-23 11:14:37 +01:00
1 parent 500ee5fe0f
commit 28d61bb203
3 files changed
+4 -12

No files matched your search

+2 -3
View File
@@ -1059,9 +1059,8 @@ static void acpi_processor_power_init_bm_check(struct acpi_processor_flags *flag
* is not required while entering C3 type state on
* P4, Core and beyond CPUs
*/
if ( c->x86_vendor == X86_VENDOR_INTEL &&
(c->x86 > 0x6 || (c->x86 == 6 && c->x86_model >= 14)) )
flags->bm_control = 0;
if ( c->x86_vendor == X86_VENDOR_INTEL )
flags->bm_control = 0;
}
#define VENDOR_INTEL (1)
+1 -7
View File
@@ -777,13 +777,7 @@ void mcheck_init(struct cpuinfo_x86 *c, bool bsp)
#ifdef CONFIG_INTEL
case X86_VENDOR_INTEL:
switch ( c->x86 )
{
case 6:
case 15:
inited = intel_mcheck_init(c, bsp);
break;
}
inited = intel_mcheck_init(c, bsp);
break;
#endif
+1 -2
View File
@@ -218,8 +218,7 @@ static void __init print_mtrr_state(const char *level)
printk("%s %u disabled\n", level, i);
}
if ((boot_cpu_data.x86_vendor == X86_VENDOR_AMD &&
boot_cpu_data.x86 >= 0xf) ||
if (boot_cpu_data.x86_vendor == X86_VENDOR_AMD ||
boot_cpu_data.x86_vendor == X86_VENDOR_HYGON) {
uint64_t syscfg, tom2;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.