mirror of
https://github.com/opnsense/src.git
synced 2026-04-24 23:57:30 -04:00
Lower the bar for ACPI-fast on virtual machines. The current logic depends
on the fact that real hardware has almost fixed cost to read the ACPI timer. It is virtually always false for hardware emulation and it makes no sense to read it multiple times, which is already quite expensive for full emulation.
This commit is contained in:
parent
0a215cf2d8
commit
d141bf6e2f
1 changed files with 3 additions and 2 deletions
|
|
@ -327,14 +327,15 @@ acpi_timer_test()
|
|||
}
|
||||
intr_restore(s);
|
||||
|
||||
if (max - min > 2)
|
||||
delta = max - min;
|
||||
if (delta > 2 && vm_guest == VM_GUEST_NO)
|
||||
n = 0;
|
||||
else if (min < 0 || max == 0)
|
||||
n = 0;
|
||||
else
|
||||
n = 1;
|
||||
if (bootverbose)
|
||||
printf(" %d/%d", n, max-min);
|
||||
printf(" %d/%d", n, delta);
|
||||
|
||||
return (n);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue