]> git.proxmox.com Git - mirror_ubuntu-disco-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)
commitd99c3871148cb643cffe138e9427b7a743aca367
treec8c9f16f963263dce4ed72d814d72cb93ed481ee
parent2eaa9cfdf33b8d7fb7aff27792192e0019ae8fc6
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