From 4f72f1bb1c791e334e9bd9a360201b9febec800f Mon Sep 17 00:00:00 2001 From: mav Date: Sat, 19 Jun 2010 08:46:17 +0000 Subject: [PATCH] Oops! Add " / hz" missed in r209328. Assume interrupt rate hz/2, not 1/2. --- sys/dev/acpica/acpi_cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/acpica/acpi_cpu.c b/sys/dev/acpica/acpi_cpu.c index 9398fc2c8950..45882a23ce98 100644 --- a/sys/dev/acpica/acpi_cpu.c +++ b/sys/dev/acpica/acpi_cpu.c @@ -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; }