Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jun 2004 19:27:57 -0700 (PDT)
From:      Nate Lawson <nate@root.org>
To:        YONETANI Tomokazu <qhwt+freebsd-acpi@les.ath.cx>
Cc:        freebsd-acpi@freebsd.org
Subject:   Re: cx_usage
Message-ID:  <20040618192739.W52398@root.org>
In-Reply-To: <20040618052615.GA48947@les.ath.cx>
References:  <20040616131055.GA37637@les.ath.cx> <20040618052615.GA48947@les.ath.cx>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040618192739.W52398>