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
8bd7372b19
commit
53ff951196
@ -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 New Issue
Block a user