Assume Always Running APIC Timer for AMD CPU families >= 0x12.
Fallback to HPET may cause locks congestions on many-core systems. This change replicates Linux behavior. MFC after: 1 month
This commit is contained in:
parent
48d95fd235
commit
a5232cc4fb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=328514
@ -526,6 +526,9 @@ native_lapic_init(vm_paddr_t addr)
|
||||
do_cpuid(0x06, regs);
|
||||
if ((regs[0] & CPUTPM1_ARAT) != 0)
|
||||
arat = 1;
|
||||
} else if (cpu_vendor_id == CPU_VENDOR_AMD &&
|
||||
CPUID_TO_FAMILY(cpu_id) >= 0x12) {
|
||||
arat = 1;
|
||||
}
|
||||
bzero(&lapic_et, sizeof(lapic_et));
|
||||
lapic_et.et_name = "LAPIC";
|
||||
|
Loading…
Reference in New Issue
Block a user