]> git.baikalelectronics.ru Git - kernel.git/commit
davinci: timers: don't enable timer until clocksource is initialized
authorKevin Hilman <khilman@deeprootsystems.com>
Thu, 11 Mar 2010 22:57:35 +0000 (14:57 -0800)
committerKevin Hilman <khilman@deeprootsystems.com>
Mon, 5 Apr 2010 22:25:11 +0000 (15:25 -0700)
commit7a9dfbd6dc0ad13b63d75586168008e772294acf
treec8c9f16f963263dce4ed72d814d72cb93ed481ee
parent6aef398e7a793081e5ddeab9842b013aa96c5c45
davinci: timers: don't enable timer until clocksource is initialized

On da830, when the same timer is used for clocksource and clockevent,
the timer can be started before the clockevent is
registered/initialzed.  This creates a window where a timer
interrupt might fire before the clockevent handler has been
setup and causes a crash.

This patch moves the actual enable/start of the timer after
the clockevent has ben registered.

Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-davinci/time.c