linux/arch/sh/kernel/cpu
Magnus Damm 6a93dde1e8 sh: Runtime PM for SuperH Mobile platform bus devices
This patch is V3 of the SuperH Mobile Runtime PM platform bus
implentation matching Rafael's Runtime PM v16.

The code gets invoked from the SuperH specific Runtime PM
platform bus functions that override the weak symbols for:
 - platform_pm_runtime_suspend()
 - platform_pm_runtime_resume()
 - platform_pm_runtime_idle()

This Runtime PM implementation performs two levels of power
management. At the time of platform bus runtime suspend the
clock to the device is stopped instantly. Later on if all
devices within the power domain has their clocks stopped
then the device driver ->runtime_suspend() callbacks are
used to save hardware register state for each device.

Device driver ->runtime_suspend() calls are scheduled from
cpuidle context using platform_pm_runtime_suspend_idle().
When all devices have been fully suspended the processor
is allowed to enter deep sleep from cpuidle.

The runtime resume operation turns on clocks and also
restores registers if needed. It is worth noting that the
devices start in a suspended state and the device driver
is responsible for calling runtime resume before accessing
the actual hardware.

In this particular platform bus implementation runtime
resume is not allowed from interrupt context. Runtime
suspend is however allowed from interrupt context as
long as the synchronous functions are avoided.

[ updated for v17 -- PFM. ]

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2009-08-23 18:03:17 +09:00
..
irq sh: Tie sparseirq in to Kconfig. 2009-06-11 10:33:09 +03:00
sh2 sh: Make sure rte delay slots are nopped out on all parts. 2009-08-15 07:41:45 +09:00
sh2a sh: Make sure rte delay slots are nopped out on all parts. 2009-08-15 07:41:45 +09:00
sh3 sh: Setup the frame register in asm code 2009-08-14 01:59:55 +09:00
sh4 sh: convert processor device setup functions to arch_initcall() 2009-08-13 11:36:33 +09:00
sh4a sh: convert processor device setup functions to arch_initcall() 2009-08-13 11:36:33 +09:00
sh5 sh: convert processor device setup functions to arch_initcall() 2009-08-13 11:36:33 +09:00
shmobile sh: Runtime PM for SuperH Mobile platform bus devices 2009-08-23 18:03:17 +09:00
adc.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
clock-cpg.c sh: use kzalloc() for cpg clocks 2009-06-17 15:39:53 +09:00
clock.c sh: add enable()/disable()/set_rate() to div6 code 2009-06-11 09:12:58 +03:00
hwblk.c sh: Add support for multiple hwblk counters 2009-07-20 04:23:39 +09:00
init.c sh: delay slot future proofing via EXPMASK on SH-4A parts. 2009-08-15 07:43:21 +09:00
Makefile sh: hwblk base implementation 2009-07-05 00:28:39 +09:00
ubc.S fix file specification in comments 2006-10-03 23:01:26 +02:00