aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/cpu/sh4a
diff options
context:
space:
mode:
authorMagnus Damm <damm@igel.co.jp>2009-07-17 10:24:55 -0400
committerPaul Mundt <lethal@linux-sh.org>2009-07-19 15:23:39 -0400
commit0f8ee1874fa80899debc0a0670e2bed0a28d2548 (patch)
treef9d58ced4b3b8e6ac50371fdb009e3446bce40c8 /arch/sh/kernel/cpu/sh4a
parenta61c1a636628a28ab5b42a9d36582a8f6a08893a (diff)
sh: Add support for multiple hwblk counters
Extend the SuperH hwblk code to support more than one counter. Contains ground work for the future Runtime PM implementation. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/cpu/sh4a')
-rw-r--r--arch/sh/kernel/cpu/sh4a/hwblk-sh7722.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/hwblk-sh7722.c b/arch/sh/kernel/cpu/sh4a/hwblk-sh7722.c
index 00a1c02d82b1..a288b5d92341 100644
--- a/arch/sh/kernel/cpu/sh4a/hwblk-sh7722.c
+++ b/arch/sh/kernel/cpu/sh4a/hwblk-sh7722.c
@@ -91,10 +91,10 @@ static struct hwblk_info sh7722_hwblk_info = {
91 91
92int arch_hwblk_sleep_mode(void) 92int arch_hwblk_sleep_mode(void)
93{ 93{
94 if (!sh7722_hwblk_area[CORE_AREA].cnt) 94 if (!sh7722_hwblk_area[CORE_AREA].cnt[HWBLK_CNT_USAGE])
95 return SUSP_SH_STANDBY | SUSP_SH_SF; 95 return SUSP_SH_STANDBY | SUSP_SH_SF;
96 96
97 if (!sh7722_hwblk_area[CORE_AREA_BM].cnt) 97 if (!sh7722_hwblk_area[CORE_AREA_BM].cnt[HWBLK_CNT_USAGE])
98 return SUSP_SH_SLEEP | SUSP_SH_SF; 98 return SUSP_SH_SLEEP | SUSP_SH_SF;
99 99
100 return SUSP_SH_SLEEP; 100 return SUSP_SH_SLEEP;