]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 7348/1: arm/spear600: fix one-shot timer
authorGilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Fri, 24 Feb 2012 21:50:50 +0000 (22:50 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 27 Feb 2012 11:18:40 +0000 (11:18 +0000)
commit9e34e37615e71aeb9d96d68ce0d02a798718b18f
tree401d734baf58a7fd1c3fc5cc58fad0d74199e4eb
parentd0b1ba42f77846501c61ee9fd43b342a26525760
ARM: 7348/1: arm/spear600: fix one-shot timer

Currently, the "clockevent_next_event" function only works correctly
if the timer is not running when this function is called, which is
not always the case when running with CONFIG_HIGH_RES_TIMERS.

Fix this by stopping the timer at the beginning of this function.

Signed-off-by: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Acked-by: Viresh Kumar <viresh.kumar@st.com>
Acked-by: Stefan Roese <sr@denx.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/plat-spear/time.c