aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile/timer.c
diff options
context:
space:
mode:
authorMarc Zyngier <marc.zyngier@arm.com>2012-01-10 14:44:19 -0500
committerMarc Zyngier <marc.zyngier@arm.com>2012-03-13 09:30:31 -0400
commit4200b16d58cd34ff8e1616d8ed77417f8fc44864 (patch)
tree63fa9b988e46a741006f12874615241cd2aa9fe5 /arch/arm/mach-shmobile/timer.c
parent1fcf3a6edde7aeef7a207f8209231dd340a4ea89 (diff)
ARM: shmobile: convert to twd_local_timer_register() interface
Add support for the new smp_twd runtime registration interface to the shmobile platforms, and remove the old compile-time support. Cc: Magnus Damm <magnus.damm@gmail.com> Cc: Paul Mundt <lethal@linux-sh.org> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'arch/arm/mach-shmobile/timer.c')
-rw-r--r--arch/arm/mach-shmobile/timer.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/timer.c b/arch/arm/mach-shmobile/timer.c
index 895794b543cd..be16231e86fc 100644
--- a/arch/arm/mach-shmobile/timer.c
+++ b/arch/arm/mach-shmobile/timer.c
@@ -20,6 +20,7 @@
20 */ 20 */
21#include <linux/platform_device.h> 21#include <linux/platform_device.h>
22#include <asm/mach/time.h> 22#include <asm/mach/time.h>
23#include <asm/smp_twd.h>
23 24
24static void __init shmobile_late_time_init(void) 25static void __init shmobile_late_time_init(void)
25{ 26{
@@ -41,6 +42,15 @@ static void __init shmobile_timer_init(void)
41 late_time_init = shmobile_late_time_init; 42 late_time_init = shmobile_late_time_init;
42} 43}
43 44
45void __init shmobile_twd_init(struct twd_local_timer *twd_local_timer)
46{
47#ifdef CONFIG_HAVE_ARM_TWD
48 int err = twd_local_timer_register(twd_local_timer);
49 if (err)
50 pr_err("twd_local_timer_register failed %d\n", err);
51#endif
52}
53
44struct sys_timer shmobile_timer = { 54struct sys_timer shmobile_timer = {
45 .init = shmobile_timer_init, 55 .init = shmobile_timer_init,
46}; 56};