All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arjan van de Ven <arjan at linux.intel.com>
To: powertop@lists.01.org
Subject: Re: [Powertop] [PATCH 2/4] Make the "which C state line" logic better
Date: Mon, 06 Aug 2012 06:22:18 -0700	[thread overview]
Message-ID: <501FC50A.2060503@linux.intel.com> (raw)
In-Reply-To: CA+Z25wXQKuTpwh-0Y2VFqZW2+zDiAveXhrqwvQrztXN=Kb+hZg@mail.gmail.com

[-- Attachment #1: Type: text/plain, Size: 1480 bytes --]

On 8/6/2012 12:19 AM, Rajagopal Venkat wrote:
> 
> On 5 August 2012 22:43, Arjan van de Ven <arjan(a)linux.intel.com <mailto:arjan(a)linux.intel.com>> wrote:
> 
>     From 2e88a61859db0592707d1a0a35e33408a0327951 Mon Sep 17 00:00:00 2001
>     From: Arjan van de Ven <arjan(a)linux.intel.com <mailto:arjan(a)linux.intel.com>>
>     Date: Sun, 5 Aug 2012 09:57:49 -0700
>     Subject: [PATCH 2/4] Make the "which C state line" logic better
> 
>     the ARM guys complained that their human-readable C state names didn't have
>     numbers in them, and that as a result, the output is all messed up.
>     Using the "linux_name" instead is only a partial solution; it messes up the x86
>     side of the logic.
> 
>  
> I fail to understand how using "linux_name" for parsing C states would mess up
> x86 logic. Each supported C state will have corresponding 'stateX' directory
> (linux_name) which contain numbers in them. Also there are few hard coded
> states in intel_cpus.cpp file, in which linux_name contains numbers in them
> as well. In both the cases linux_name contains numbers and hence safe to
> parse. Please let me know if I am missing something here.

it contains numbers, but not the right ones
so on x86, the package, core and cpu states do not line up properly if I only use linux_name.
(e.g. package C6 and core C6 are on a different line than CPU C6)
with this patch that is kept correctly, while hopefully also fixing your issue.



             reply	other threads:[~2012-08-06 13:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-06 13:22 Arjan van de Ven [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-08-06 13:28 [Powertop] [PATCH 2/4] Make the "which C state line" logic better Rajagopal Venkat
2012-08-06  7:19 Rajagopal Venkat
2012-08-05 17:13 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=501FC50A.2060503@linux.intel.com \
    --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.