cx_usage

Nate Lawson nate at root.org
Sat Jun 19 02:28:07 GMT 2004


On Fri, 18 Jun 2004, YONETANI Tomokazu wrote:
> On Wed, Jun 16, 2004 at 10:10:55PM +0900, YONETANI Tomokazu wrote:
> > What do you think about the following changes?
> >
> > - print 100% instead of 99% when there's only 1 Cx state, and 0%
> >   when the sum is zero.
> > - two digits from fractional part of each percentage are shown;
> >   my Laptop PC barely enters into C3 state and hw.acpi.cpu.cx_usage
> >   is almost always "0% 99% 0%" after revision 1.39. it's now shown as
> >   "0.00% 99.96% 0.03%"
>
> Actually, cpu_cx_stats[i] * 100 may not fit in u_int and would print
> incorrect value as values grow. Please try this instead.

Thank you.  I committed this with minor changes.

-Nate


More information about the freebsd-acpi mailing list