Status of CONFIG_OMAP_DM_TIMER

Ben Gamari
2010-12-23T18:07:20Z

While compiling a kernel today I found the build was failing with a fair number
of errors while linking vmlinux,

arch/arm/mach-omap2/built-in.o: In function `omap2_gp_timer_set_mode':
/home/bgamari/trees/linux-2.6/arch/arm/mach-omap2/timer-gp.c:84: undefined reference to `omap_dm_timer_stop'
/home/bgamari/trees/linux-2.6/arch/arm/mach-omap2/timer-gp.c:88: undefined reference to `omap_dm_timer_get_fclk'
/home/bgamari/trees/linux-2.6/arch/arm/mach-omap2/timer-gp.c:90: undefined reference to `omap_dm_timer_set_load_start'
...

After investigating a bit more deeply, I found that I had neglected to enable
OMAP_DM_TIMER. Looking further, I found that ARCH_OMAP2PLUS builds timer_gp.o,
which itself has symbol dependencies on the dm_timer framework. Given this
face, it seems that the easiest solution would be to do as I have done in this
patch and make ARCH_OMAP2PLUS depend on OMAP_DM_TIMER, since it will not build
without it. That being said, is it necessary to keep OMAP_DM_TIMER
configurable? What is this option actually buying us?

Cheers,

- Ben