summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authordavide <davide@FreeBSD.org>2013-02-28 11:27:01 +0000
committerdavide <davide@FreeBSD.org>2013-02-28 11:27:01 +0000
commit240074414d4919ebd889f27087c72783a7ed9b19 (patch)
tree7a1117f07eabc4a3e83f7785ad250cefbcef872a /sys
parent2bf12d0c7ceced74a813d6940dd07310a11d6a2a (diff)
downloadFreeBSD-src-240074414d4919ebd889f27087c72783a7ed9b19.zip
FreeBSD-src-240074414d4919ebd889f27087c72783a7ed9b19.tar.gz
MFcalloutng (r247427 by mav):
We don't need any precision here. Let it be fast and dirty shift then slow and excessively precise 64-bit division.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/acpica/acpi_cpu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpica/acpi_cpu.c b/sys/dev/acpica/acpi_cpu.c
index df4c4c2..e58d980 100644
--- a/sys/dev/acpica/acpi_cpu.c
+++ b/sys/dev/acpica/acpi_cpu.c
@@ -981,8 +981,8 @@ acpi_cpu_idle(sbintime_t sbt)
/* Find the lowest state that has small enough latency. */
us = sc->cpu_prev_sleep;
- if (sbt >= 0 && us > sbt / SBT_1US)
- us = sbt / SBT_1US;
+ if (sbt >= 0 && us > (sbt >> 12))
+ us = (sbt >> 12);
cx_next_idx = 0;
if (cpu_disable_deep_sleep)
i = min(sc->cpu_cx_lowest, sc->cpu_non_c3);
OpenPOWER on IntegriCloud