mirror of
https://github.com/opnsense/src.git
synced 2026-06-13 18:50:31 -04:00
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
1 changed files with 3 additions and 0 deletions
|
|
@ -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 a new issue