On 4/16/2011 9:21 PM, Tarun Kanti DebBarma wrote:
In driver probe use sys_timer_reserved to identify which all timers have already been used for clocksource and clockevent. Mark all those timers as reserved so that no one else can use them. Signed-off-by: Tarun Kanti DebBarma<tarun.kanti@xxxxxx> --- arch/arm/plat-omap/dmtimer.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/arch/arm/plat-omap/dmtimer.c b/arch/arm/plat-omap/dmtimer.c index e15b3a8..8b6fd22 100644 --- a/arch/arm/plat-omap/dmtimer.c +++ b/arch/arm/plat-omap/dmtimer.c @@ -554,7 +554,13 @@ static int __devinit omap_dm_timer_probe(struct platform_device *pdev) timer->id = pdev->id; timer->irq = irq->start; timer->pdev = pdev; - timer->reserved = 0; +#if defined(CONFIG_ARCH_OMAP2)
Do you mean CONFIG_ARCH_OMAP2PLUS here ?
+ /* Mark clocksource and clockevent timers as reserved */ + if ((sys_timer_reserved>> (pdev->id - 1))& 0x1) + timer->reserved = 1; + else +#endif + timer->reserved = 0; /* Skip pm_runtime_enable for OMAP1 */ if (!pdata->needs_manual_reset)
-- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html