From: Arjan van de Ven <arjan@infradead.org>
To: Eric Dumazet <eric.dumazet@gmail.com>
Cc: linux-kernel@vger.kernel.org, mingo@elte.hu, peterz@infradead.org
Subject: Re: [patch] perf timechart: Add a power-only mode
Date: Thu, 24 Sep 2009 15:51:08 +0200 [thread overview]
Message-ID: <20090924155108.38777ef5@infradead.org> (raw)
In-Reply-To: <4ABB7855.4080409@gmail.com>
On Thu, 24 Sep 2009 15:47:01 +0200
Eric Dumazet <eric.dumazet@gmail.com> wrote:
> > - for (cpu = 0; cpu < numcpus; cpu++) {
> > + for (cpu = 0; cpu <= numcpus; cpu++) {
>
> hmm, why test is now "cpu <= numcpus" ?
at this point numcpus is the highest number cpu...
and the graph would miss the "closing" frequency.
> > fopen("/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies",
> > "r");
>
> if this cpu is offline
1) taking cpu 0 offline is stupid ;-)
(really, don't do that, there's only bad things to come from it)
2) if that file does not exist the fallback is graceful, we just use
the highest frequency we saw in the trace instead.
>
> /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies:
> No such file or directory
--
Arjan van de Ven Intel Open Source Technology Centre
For development, discussion and tips for power savings,
visit http://www.lesswatts.org
next prev parent reply other threads:[~2009-09-24 13:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-24 13:40 Arjan van de Ven
2009-09-24 13:47 ` Eric Dumazet
2009-09-24 13:51 ` Arjan van de Ven [this message]
2009-10-01 7:46 ` [tip:perf/urgent] " tip-bot for Arjan van de Ven
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=20090924155108.38777ef5@infradead.org \
--to=arjan@infradead.org \
--cc=eric.dumazet@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=peterz@infradead.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome