omap3: cpuidle: Update statistics for correct state
v2 cover omap3: cpuidle: Update statistics for correct state
This is a fresh look at the problem [1] discussed earlier.
Generic approach here is same; but the 'valid' flag for the target state is verified in omap3_enter_idle_bm(). If the valid flag == 0, we look for next (lower) state with valid flag == 1.
Have tried to optimize the look-up without loosing readability.
Sanjeev Premi (1):
omap3: cpuidle: Update statistics for correct state
arch/arm/mach-omap2/cpuidle34xx.c | 98 ++++++++++++++++++++++++++++++++++--- arch/arm/mach-omap2/pm.h | 1 + arch/arm/mach-omap2/pm34xx.c | 4 ++ 3 files changed, 95 insertions(+), 8 deletions(-)
Quoted 8 lines
-----Original Message-----
From: Premi, Sanjeev
Sent: Tuesday, November 24, 2009 11:20 PM
To: [email protected]
Cc: Premi, Sanjeev
Subject: [PATCHv2 0/1] omap3: cpuidle: Update statistics for correct state
Quoted 8 lines
This is a fresh look at the problem [1] discussed earlier.
Generic approach here is same; but the 'valid' flag for the target state is verified in
omap3_enter_idle_bm(). If the valid flag == 0, we look for next (lower) state with valid flag == 1.Have tried to optimize the look-up without loosing readability.
Missed this in my message:
[1] http://marc.info/?l=linux-omap&m=125214460417989&w=2
Quoted 11 lines
Sanjeev Premi (1):
omap3: cpuidle: Update statistics for correct statearch/arm/mach-omap2/cpuidle34xx.c | 98 ++++++++++++++++++++++++++++++++++--- arch/arm/mach-omap2/pm.h | 1 + arch/arm/mach-omap2/pm34xx.c | 4 ++ 3 files changed, 95 insertions(+), 8 deletions(-)