svn commit: r209330 - head/sys/dev/acpica
Alexander Motin
mav at FreeBSD.org
Sat Jun 19 08:46:18 UTC 2010
Author: mav
Date: Sat Jun 19 08:46:17 2010
New Revision: 209330
URL: http://svn.freebsd.org/changeset/base/209330
Log:
Oops! Add " / hz" missed in r209328. Assume interrupt rate hz/2, not 1/2.
Modified:
head/sys/dev/acpica/acpi_cpu.c
Modified: head/sys/dev/acpica/acpi_cpu.c
==============================================================================
--- head/sys/dev/acpica/acpi_cpu.c Sat Jun 19 08:42:29 2010 (r209329)
+++ head/sys/dev/acpica/acpi_cpu.c Sat Jun 19 08:46:17 2010 (r209330)
@@ -937,7 +937,7 @@ acpi_cpu_idle()
AcpiHwRead(&end_time, &AcpiGbl_FADT.XPmTimerBlock);
end_time = acpi_TimerDelta(end_time, start_time);
sc->cpu_prev_sleep = (sc->cpu_prev_sleep * 3 +
- min(PM_USEC(end_time), 500000)) / 4;
+ min(PM_USEC(end_time), 500000 / hz)) / 4;
return;
}
More information about the svn-src-all
mailing list