svn commit: r247460 - head/sys/dev/acpica
Davide Italiano
davide at FreeBSD.org
Thu Feb 28 11:27:03 UTC 2013
Author: davide
Date: Thu Feb 28 11:27:01 2013
New Revision: 247460
URL: http://svnweb.freebsd.org/changeset/base/247460
Log:
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.
Modified:
head/sys/dev/acpica/acpi_cpu.c
Modified: head/sys/dev/acpica/acpi_cpu.c
==============================================================================
--- head/sys/dev/acpica/acpi_cpu.c Thu Feb 28 10:59:40 2013 (r247459)
+++ head/sys/dev/acpica/acpi_cpu.c Thu Feb 28 11:27:01 2013 (r247460)
@@ -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);
More information about the svn-src-head
mailing list