[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <5469EFBB.6000806@linaro.org>
Date: Mon, 17 Nov 2014 13:53:15 +0100
From: Daniel Lezcano <daniel.lezcano@...aro.org>
To: Lorenzo Pieralisi <lorenzo.pieralisi@....com>
CC: "rjw@...ysocki.net" <rjw@...ysocki.net>,
"preeti@...ux.vnet.ibm.com" <preeti@...ux.vnet.ibm.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"lenb@...nel.org" <lenb@...nel.org>,
"nsekhar@...com" <nsekhar@...com>,
"khilman@...prootsystems.com" <khilman@...prootsystems.com>,
"shawn.guo@...aro.org" <shawn.guo@...aro.org>,
"kernel@...gutronix.de" <kernel@...gutronix.de>,
"tony@...mide.com" <tony@...mide.com>,
"kgene.kim@...sung.com" <kgene.kim@...sung.com>,
"horms@...ge.net.au" <horms@...ge.net.au>,
"magnus.damm@...il.com" <magnus.damm@...il.com>,
"swarren@...dotorg.org" <swarren@...dotorg.org>,
"thierry.reding@...il.com" <thierry.reding@...il.com>,
"ralf@...ux-mips.org" <ralf@...ux-mips.org>,
"tglx@...utronix.de" <tglx@...utronix.de>,
"michal.simek@...inx.com" <michal.simek@...inx.com>,
"linux-pm@...r.kernel.org" <linux-pm@...r.kernel.org>,
"linux-acpi@...r.kernel.org" <linux-acpi@...r.kernel.org>
Subject: Re: [PATCH] cpuidle: Invert CPUIDLE_FLAG_TIME_VALID logic
On 11/13/2014 03:56 PM, Lorenzo Pieralisi wrote:
> On Wed, Nov 12, 2014 at 03:03:50PM +0000, Daniel Lezcano wrote:
>> The only place where the time is invalid is when the ACPI_CSTATE_FFH entry
>> method is not set. Otherwise for all the drivers, the time can be correctly
>> measured.
>>
>> Instead of duplicating the CPUIDLE_FLAG_TIME_VALID flag in all the drivers
>> for all the states, just invert the logic by replacing it by the flag
>> CPUIDLE_FLAG_TIME_INVALID, hence we can set this flag only for the acpi idle
>> driver, remove the former flag from all the drivers and invert the logic with
>> this flag in the different governor.
>>
>> Signed-off-by: Daniel Lezcano <daniel.lezcano@...aro.org>
>
> Are we sure that ACPI C1 invalid residency time is *still* an issue after
> we moved the residency accounting to the idle core ?
(Cc'ed linux-acpi@)
Hi x86 guys,
any comment on that ?
Thanks in advance
-- Daniel
> I have a feeling you can remove this flag entirely, but I will let x86
> guys speak for themselves.
[ ... ]
>> diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c
>> index 17f9ec5..380b4b4 100644
>> --- a/drivers/acpi/processor_idle.c
>> +++ b/drivers/acpi/processor_idle.c
>> @@ -985,8 +985,8 @@ static int acpi_processor_setup_cpuidle_states(struct acpi_processor *pr)
>> state->flags = 0;
>> switch (cx->type) {
>> case ACPI_STATE_C1:
>> - if (cx->entry_method == ACPI_CSTATE_FFH)
>> - state->flags |= CPUIDLE_FLAG_TIME_VALID;
>> + if (cx->entry_method != ACPI_CSTATE_FFH)
>> + state->flags |= CPUIDLE_FLAG_TIME_INVALID;
[ ... ]
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists