aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/timer.c
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2011-09-21 19:38:51 -0400
committerTony Lindgren <tony@atomide.com>2011-09-21 19:38:51 -0400
commit0dad9faeaeb0fa3524068a94e1745b91e5597c17 (patch)
tree2dbe24ec9964d605ea39756ed320524901324f17 /arch/arm/mach-omap2/timer.c
parentffe07ceae1ae4b00b776c59694eddd9dd615dcea (diff)
ARM: OMAP: dmtimer: skip reserved timers
Pass the reserved flag in pdata and use it. We can now make sys_timer_reserved static to mach-omap2/timer.c. Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/timer.c')
-rw-r--r--arch/arm/mach-omap2/timer.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/timer.c b/arch/arm/mach-omap2/timer.c
index 9c2f58895a16..f1e3ec1c16e1 100644
--- a/arch/arm/mach-omap2/timer.c
+++ b/arch/arm/mach-omap2/timer.c
@@ -69,7 +69,7 @@
69/* MAX_GPTIMER_ID: number of GPTIMERs on the chip */ 69/* MAX_GPTIMER_ID: number of GPTIMERs on the chip */
70#define MAX_GPTIMER_ID 12 70#define MAX_GPTIMER_ID 12
71 71
72u32 sys_timer_reserved; 72static u32 sys_timer_reserved;
73 73
74/* Clockevent code */ 74/* Clockevent code */
75 75
@@ -463,6 +463,10 @@ static int __init omap_timer_init(struct omap_hwmod *oh, void *unused)
463 pdata->set_timer_src = omap2_dm_timer_set_src; 463 pdata->set_timer_src = omap2_dm_timer_set_src;
464 pdata->timer_ip_version = oh->class->rev; 464 pdata->timer_ip_version = oh->class->rev;
465 465
466 /* Mark clocksource and clockevent timers as reserved */
467 if ((sys_timer_reserved >> (id - 1)) & 0x1)
468 pdata->reserved = 1;
469
466 od = omap_device_build(name, id, oh, pdata, sizeof(*pdata), 470 od = omap_device_build(name, id, oh, pdata, sizeof(*pdata),
467 omap2_dmtimer_latency, 471 omap2_dmtimer_latency,
468 ARRAY_SIZE(omap2_dmtimer_latency), 472 ARRAY_SIZE(omap2_dmtimer_latency),