All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yong Zhang <yong.zhang0@gmail.com>
To: Thomas Renninger <trenn@suse.de>
Cc: linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org,
	linux-pm@lists.linux-foundation.org, discuss@lesswatts.org,
	power@bughost.org, cpufreq@vger.kernel.org,
	linux@dominikbrodowski.net, Mattia Dongili <malattia@linux.it>,
	Len Brown <lenb@kernel.org>, Ingo Molnar <mingo@elte.hu>,
	herrmann.der.user@googlemail.com, linux-omap@vger.kernel.org,
	dri-devel@lists.freedesktop.org
Subject: Re: [ANNOUNCE] cpupowerutils - cpufrequtils extended with quite some features
Date: Sat, 12 Mar 2011 12:40:10 +0800	[thread overview]
Message-ID: <20110312044010.GB3634@zhy> (raw)
In-Reply-To: <20110312043409.GA3634@zhy>

On Sat, Mar 12, 2011 at 12:34:09PM +0800, Yong Zhang wrote:
> On Fri, Mar 11, 2011 at 12:46:59PM +0100, Thomas Renninger wrote:
> > Happy testing..., if you have a recent machine, you'll like it!
> > 
> > After some testing phase it would be great to get this tool
> > merged into the kernel git repo under:
> > tools/power/cpupower
> > and replace the Intel HW only supporting tools in tools/power/x86.
> 
> I got below output on my laptop:
> 
>     |Mperf               || Idle_Stats                
> CPU | C0   | Cx   | Freq || POLL | C1   | C2   | C3   
>    0| 36.00| 64.00|   820||1843411670376227.2|1843411670376692.2|  0.00|  0.00
>    1| 44.69| 55.31|   920||  0.00|  0.00|  0.00|  0.00
> 
> Seems below patch fix it:

forget the declaration of value :)

---
--- utils/helpers/sysfs-orig.c	2011-03-12 12:32:06.179827929 +0800
+++ utils/helpers/sysfs.c	2011-03-12 12:35:21.512796546 +0800
@@ -111,7 +111,7 @@
 						     unsigned int idlestate,
 						     enum idlestate_value which)
 {
-	unsigned long value;
+	unsigned long long value;
 	unsigned int len;
 	char linebuf[MAX_LINE_LEN];
 	char *endp;
@@ -126,7 +126,7 @@
 		return 0;
 	}
 
-	value = strtoul(linebuf, &endp, 0);
+	value = strtoull(linebuf, &endp, 0);
 
 	if ( endp == linebuf || errno == ERANGE )
 		return 0;

  parent reply	other threads:[~2011-03-12  4:40 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-11 11:46 [ANNOUNCE] cpupowerutils - cpufrequtils extended with quite some features Thomas Renninger
2011-03-11 15:56 ` Corentin Chary
2011-03-11 15:56 ` Corentin Chary
2011-03-11 23:53   ` Thomas Renninger
2011-03-11 23:53   ` Thomas Renninger
2011-03-12  9:59     ` Corentin Chary
2011-03-12  9:59     ` Corentin Chary
2011-03-12  0:18 ` Thomas Renninger
2011-03-12  0:18 ` Thomas Renninger
2011-03-12  4:34 ` Yong Zhang
2011-03-12  4:34 ` Yong Zhang
2011-03-12  4:40   ` Yong Zhang
2011-03-12  4:40   ` Yong Zhang [this message]
2011-03-23 10:29 ` Thomas Renninger
  -- strict thread matches above, loose matches on Subject: below --
2011-03-11 11:46 Thomas Renninger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110312044010.GB3634@zhy \
    --to=yong.zhang0@gmail.com \
    --cc=cpufreq@vger.kernel.org \
    --cc=discuss@lesswatts.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=herrmann.der.user@googlemail.com \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=linux@dominikbrodowski.net \
    --cc=malattia@linux.it \
    --cc=mingo@elte.hu \
    --cc=power@bughost.org \
    --cc=trenn@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.