K 10 svn:author V 3 mav K 8 svn:date V 27 2009-07-16T08:27:12.011165Z K 7 svn:log V 557 MFC rev. 191760, 191763, 191764. Avoid comparing negative signed to positive unsignad values. It was leading to a bug, when C-state does not decrease on sleep shorter then declared transition latency. Fixing this deprecates workaround for broken C-states on some hardware. By the way, change state selecting logic a bit. Instead of last sleep time use short-time average of it. Global interrupts rate in system is a quite random value, to corellate subsequent sleeps so directly. Make dev.cpu.X.cx_usage sysctl also report current average of sleep time. END