aboutsummaryrefslogtreecommitdiffstats
path: root/arch/xtensa
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2012-12-10 16:26:22 -0500
committerChris Zankel <chris@zankel.net>2012-12-19 00:10:25 -0500
commit79fcf52ba0dbcb9888812113df2d7248b41e9af1 (patch)
treebde08355d6875f8bd9f5e0f16470086a53852600 /arch/xtensa
parent90e3bc798bec8b33ba4300a7751b627b54b3bb5b (diff)
xtensa: reset all timers on initialization
There are XCHAL_NUM_TIMERS, reset them all. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Chris Zankel <chris@zankel.net>
Diffstat (limited to 'arch/xtensa')
-rw-r--r--arch/xtensa/kernel/head.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/xtensa/kernel/head.S b/arch/xtensa/kernel/head.S
index 9013ae0174f8..0cd337a341d9 100644
--- a/arch/xtensa/kernel/head.S
+++ b/arch/xtensa/kernel/head.S
@@ -111,7 +111,7 @@ ENTRY(_startup)
111 /* Disable all timers. */ 111 /* Disable all timers. */
112 112
113 .set _index, 0 113 .set _index, 0
114 .rept XCHAL_NUM_TIMERS - 1 114 .rept XCHAL_NUM_TIMERS
115 wsr a0, SREG_CCOMPARE + _index 115 wsr a0, SREG_CCOMPARE + _index
116 .set _index, _index + 1 116 .set _index, _index + 1
117 .endr 117 .endr