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);
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to