From: Chris Ferron <chris.e.ferron at linux.intel.com>
To: powertop@lists.01.org
Subject: Re: [Powertop] Suspecting incorrect if check during powertop init
Date: Tue, 07 Aug 2012 09:25:49 -0700 [thread overview]
Message-ID: <5021418D.2060609@linux.intel.com> (raw)
In-Reply-To: 502117EA.3090506@linux.intel.com
[-- Attachment #1: Type: text/plain, Size: 1239 bytes --]
On 08/07/2012 06:28 AM, Arjan van de Ven wrote:
> On 8/7/2012 3:54 AM, Rajagopal Venkat wrote:
>> Hi,
>>
>> Recently a patch[1] is applied to remove boardname support from powertop.
>> This commit adds few lines of code to powertop_init(), to initialize two
>> global variables. I suspect, if condition is not correct and is suppose
>> to be as follows. Is that intentional?
>>
>> if (access("/var/cache/powertop/saved_parameters.powertop", R_OK) == 0 ||
>> access("/data/local/powertop/saved_parameters.powertop", R_OK) == 0) {
>> global_fixed_parameters = 1;
>> global_power_override = 1;
>> }
>>
> both are wrong
> the whole snippet that assigns these two globals needs to go.
>
> the logic used to be that you could do a boardname override, which would lock system parameters in place
> and stop the learning logic
> (say, if provided by a manufacturer)
>
> with the boardname stuff gone, those parameters shouldn't be set like this
>
> _______________________________________________
> PowerTop mailing list
> PowerTop(a)lists.01.org
> https://lists.01.org/mailman/listinfo/powertop
Thanks for the catch. I have pushed the fix.
-C
next reply other threads:[~2012-08-07 16:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-07 16:25 Chris Ferron [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-08-07 13:28 [Powertop] Suspecting incorrect if check during powertop init Arjan van de Ven
2012-08-07 10:54 Rajagopal Venkat
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=5021418D.2060609@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.