From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>,
lenb@kernel.org, linux-pm@vger.kernel.org,
linux-acpi@vger.kernel.org
Subject: Re: [PATCH 4/5] acpi : remove power from acpi_processor_cx structure
Date: Fri, 13 Jul 2012 20:14:10 +0200 [thread overview]
Message-ID: <201207132014.10279.rjw@sisk.pl> (raw)
In-Reply-To: <50001325.8010500@linaro.org>
On Friday, July 13, 2012, Daniel Lezcano wrote:
> On 07/13/2012 02:17 AM, Konrad Rzeszutek Wilk wrote:
> > On Thu, Jul 12, 2012 at 11:03:45PM +0200, Daniel Lezcano wrote:
> >> Remove the power field as it is not used.
> >>
> > It looks to be used in drivers/xen/xen-acpi-processor.c.
> >
> > I could emulate some value and stick it in there.. but I am
> > more curious - what is the intent of this value?
>
> At the first glance, this value is the power consumption of the
> specified state. I am not sure all acpi returns a correct value.
>
> I can imagine the power should be copied to the cpuidle_state structure
> to the power field where it is used by the governor to choose the better
> C-state. As it is not specified, cpuidle will assume the C-State N
> consumes less than the C-State N-1.
>
> If we want to add the power consumption we should also set the
> 'power_specified' flag for the driver, but that could change the
> behavior of the cpuidle driver.
>
> Anyway, IMO, this field is useless for this structure and should be
> specified later, if that makes sense, directly in the cpuidle_state
> structure like the other drivers do.
>
> If nobody complains, I will remove the field also from Xen and resend
> this patch.
Please do.
Thanks,
Rafael
next prev parent reply other threads:[~2012-07-13 18:08 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-12 21:03 [PATCH 1/5] acpi : remove latency_ticks from acpi_processor_cx structure Daniel Lezcano
2012-07-12 21:03 ` [PATCH 2/5] acpi : remove index " Daniel Lezcano
2012-07-12 21:44 ` Rafael J. Wysocki
2012-07-12 21:57 ` Daniel Lezcano
2012-07-13 18:13 ` Rafael J. Wysocki
2012-07-17 20:32 ` Rafael J. Wysocki
2012-07-17 20:34 ` Rafael J. Wysocki
2012-07-12 21:03 ` [PATCH 3/5] acpi : remove usage " Daniel Lezcano
2012-07-12 21:45 ` Rafael J. Wysocki
2012-07-17 20:35 ` Rafael J. Wysocki
2012-07-12 21:03 ` [PATCH 4/5] acpi : remove power " Daniel Lezcano
2012-07-12 21:45 ` Rafael J. Wysocki
2012-07-13 0:17 ` Konrad Rzeszutek Wilk
2012-07-13 7:36 ` Daniel Lezcano
2012-07-13 12:23 ` Daniel Lezcano
2012-07-13 18:14 ` Rafael J. Wysocki [this message]
2012-07-16 15:23 ` Konrad Rzeszutek Wilk
2012-07-12 21:03 ` [PATCH 5/5] acpi : remove time " Daniel Lezcano
2012-07-12 21:46 ` Rafael J. Wysocki
2012-07-17 20:35 ` Rafael J. Wysocki
2012-07-12 21:40 ` [PATCH 1/5] acpi : remove latency_ticks " Rafael J. Wysocki
2012-07-17 20:32 ` Rafael J. Wysocki
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=201207132014.10279.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=daniel.lezcano@linaro.org \
--cc=konrad.wilk@oracle.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-pm@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).