Thread (18 messages) 18 messages, 4 authors, 2012-02-29
STALE5210d
Revisions (9)
  1. v6 [diff vs current]
  2. v6 [diff vs current]
  3. v6 [diff vs current]
  4. v6 current
  5. v6 [diff vs current]
  6. v7 [diff vs current]
  7. v7 [diff vs current]
  8. v7 [diff vs current]
  9. v8 [diff vs current]

[PATCH v6 1/9] cpuidle: Add common time keeping and irq enabling

From: Rob Lee <hidden>
Date: 2012-02-29 13:30:25
Also in: linux-omap, linux-sh

On Wed, Feb 29, 2012 at 2:30 AM, Jean Pihet [off-list ref] wrote:
Hi Rob,

On Wed, Feb 29, 2012 at 4:11 AM, Robert Lee [off-list ref] wrote:
quoted
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 <redacted>
---
?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
...
quoted
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
...
quoted
@@ -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.
Thanks.
...

Regards,
Jean
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help