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:
Jung-uk Kim 2011-04-04 17:00:50 +00:00
parent 0a215cf2d8
commit d141bf6e2f

View file

@ -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);
}