diff options
author | Magnus Damm <damm@igel.co.jp> | 2009-07-03 10:08:05 +0000 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-07-05 00:28:39 +0900 |
commit | 79714acbab080ad351acf4bba9a2bbc21d65c93c (patch) | |
tree | 4cf6385ccefa0e47e753f78bc4bce1d1fd8b0861 /arch/sh/kernel/time.c | |
parent | 746a99a5af60ee676afa2ba469ccd1373493c7e7 (diff) | |
download | talos-op-linux-79714acbab080ad351acf4bba9a2bbc21d65c93c.tar.gz talos-op-linux-79714acbab080ad351acf4bba9a2bbc21d65c93c.zip |
sh: hwblk base implementation
This patch is the hwblk base implementation, containing
structures and shared functions dealing with hardware blocks.
A each processor model should provide a list of hwblks and
describe which module stop bit that is associated with each
hwblck and how the hwblks are grouped together into areas.
The shared code keeps track of the usage count for each
hwblk and the areas. Fallback implementations for processor
specific code are also kept as weak symbols.
The clock framework, the runtime pm code and cpuidle will
all tie into this hwblk 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/time.c')
-rw-r--r-- | arch/sh/kernel/time.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sh/kernel/time.c b/arch/sh/kernel/time.c index 9b352a1e3fb4..d2424b068b7b 100644 --- a/arch/sh/kernel/time.c +++ b/arch/sh/kernel/time.c @@ -21,6 +21,7 @@ #include <linux/smp.h> #include <linux/rtc.h> #include <asm/clock.h> +#include <asm/hwblk.h> #include <asm/rtc.h> /* Dummy RTC ops */ @@ -96,6 +97,7 @@ void __init time_init(void) if (board_time_init) board_time_init(); + hwblk_init(); clk_init(); rtc_sh_get_time(&xtime); |