Re: [PATCH v6 1/9] cpuidle: Add common time keeping and irq enabling |
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: [PATCH v6 1/9] cpuidle: Add common time keeping and irq enabling
- From: Jean Pihet <jean.pihet@xxxxxxxxxxxxxx>
- Date: Wed, 29 Feb 2012 09:30:59 +0100
- Authentication-results: mr.google.com; spf=pass (google.com: domain of jean.pihet@xxxxxxxxxxxxxx designates 10.52.71.166 as permitted sender) smtp.mail=jean.pihet@xxxxxxxxxxxxxx
- Cc: len.brown@xxxxxxxxx, khilman@xxxxxx, robherring2@xxxxxxxxx, Baohua.Song@xxxxxxx, amit.kucheria@xxxxxxxxxx, nicolas.ferre@xxxxxxxxx, linux@xxxxxxxxxxxx, kgene.kim@xxxxxxxxxxx, amit.kachhap@xxxxxxxxxx, magnus.damm@xxxxxxxxx, nsekhar@xxxxxx, daniel.lezcano@xxxxxxxxxx, mturquette@xxxxxxxxxx, vincent.guittot@xxxxxxxxxx, arnd.bergmann@xxxxxxxxxx, linux-arm-kernel@xxxxxxxxxxxxxxxxxxx, linaro-dev@xxxxxxxxxxxxxxxx, patches@xxxxxxxxxx, deepthi@xxxxxxxxxxxxxxxxxx, broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx, nicolas.pitre@xxxxxxxxxx, linux@xxxxxxxxxxxxxxxx, venki@xxxxxxxxxx, ccross@xxxxxxxxxx, g.trinabh@xxxxxxxxx, kernel@xxxxxxxxxxxxxx, lethal@xxxxxxxxxxxx, jon-hunter@xxxxxx, tony@xxxxxxxxxxx, linux-omap@xxxxxxxxxxxxxxx, linux-sh@xxxxxxxxxxxxxxx, linux-pm@xxxxxxxxxxxxxxx
- In-reply-to: <1330485109-7327-2-git-send-email-rob.lee@linaro.org>
Hi Rob,
On Wed, Feb 29, 2012 at 4:11 AM, Robert Lee <rob.lee@xxxxxxxxxx> wrote:
> Make necessary changes to implement time keeping and irq enabling
> in the core cpuidle code. This will allow the removal of these
> functionalities from various platform cpuidle implementations whose
> timekeeping and irq enabling follows the form in this common code.
>
> Signed-off-by: Robert Lee <rob.lee@xxxxxxxxxx>
> ---
> arch/arm/include/asm/cpuidle.h | 14 ++++++
> drivers/cpuidle/cpuidle.c | 90 ++++++++++++++++++++++++++++++++--------
> include/linux/cpuidle.h | 13 ++++++
> 3 files changed, 99 insertions(+), 18 deletions(-)
> create mode 100644 arch/arm/include/asm/cpuidle.h
>
...
> diff --git a/drivers/cpuidle/cpuidle.c b/drivers/cpuidle/cpuidle.c
> index 59f4261..00b02f5 100644
> --- a/drivers/cpuidle/cpuidle.c
> +++ b/drivers/cpuidle/cpuidle.c
...
> @@ -110,7 +126,8 @@ int cpuidle_idle_call(void)
> dev->states_usage[entered_state].time +=
> (unsigned long long)dev->last_residency;
> dev->states_usage[entered_state].usage++;
> - }
> + } else
> + dev->last_residency = 0;
Braces are required here, according to the coding style doc.
...
Regards,
Jean
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Linux Arm (vger)]
[ARM Kernel]
[ARM MSM]
[Linux Tegra]
[Maemo Users]
[Linux USB Devel]
[Video for Linux]
[Linux Audio Users]
[Photo]
[Yosemite News]
[Yosemite Photos]
[Free Online Dating]
[Linux Kernel]
[Linux SCSI]
[XFree86]