From: Sergey Senozhatsky <sergey.senozhatsky at gmail.com>
To: powertop@lists.01.org
Subject: Re: [Powertop] [RFC] [PATCH 11/11] Ignore non-P-state-enabled CPUs when calculating frequency.
Date: Tue, 13 Nov 2012 22:23:53 +0300 [thread overview]
Message-ID: <20121113192353.GA3314@swordfish> (raw)
In-Reply-To: 50A29C2C.8020609@linux.intel.com
[-- Attachment #1: Type: text/plain, Size: 1184 bytes --]
On (11/13/12 11:14), Chris Ferron wrote:
> On 11/05/2012 03:12 AM, Ivan Shapovalov wrote:
> >This fixes bogus reported CPU frequencies (actually, uninitialized
> >values from i965_core) when i965 monitoring is used.
> >
> >Signed-off-by: Ivan Shapovalov <intelfx100(a)gmail.com>
> >---
> > src/cpu/abstract_cpu.cpp | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> >diff --git a/src/cpu/abstract_cpu.cpp b/src/cpu/abstract_cpu.cpp
> >index d64cb24..fea377b 100644
> >--- a/src/cpu/abstract_cpu.cpp
> >+++ b/src/cpu/abstract_cpu.cpp
> >@@ -380,7 +380,7 @@ void abstract_cpu::calculate_freq(uint64_t time)
> > /* calculate the maximum frequency of all children */
> > for (i = 0; i < children.size(); i++)
> >- if (children[i]) {
> >+ if (children[i] && children[i]->has_pstates()) {
> > uint64_t f = 0;
> > if (!children[i]->idle) {
> > f = children[i]->current_frequency;
> This patch for the bug fix has been merged.
> Thanks,
> Chris
>
thanks, Chris!
sorry, my bad, I somehow forgot to ask to merge this one.
the whole patch series looks interesting and I'd like to revisit it after release. thanks Ivan.
-ss
next reply other threads:[~2012-11-13 19:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-13 19:23 Sergey Senozhatsky [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-11-14 16:32 [Powertop] [RFC] [PATCH 11/11] Ignore non-P-state-enabled CPUs when calculating frequency Chris Ferron
2012-11-14 14:30 Ivan Shapovalov
2012-11-13 19:14 Chris Ferron
2012-11-05 11:12 Ivan Shapovalov
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=20121113192353.GA3314@swordfish \
--to=powertop@lists.01.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 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.