Browse Source

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>
Max Filippov 12 years ago
parent
commit
79fcf52ba0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      arch/xtensa/kernel/head.S

+ 1 - 1
arch/xtensa/kernel/head.S

@@ -111,7 +111,7 @@ ENTRY(_startup)
 	/* Disable all timers. */
 
 	.set	_index, 0
-	.rept	XCHAL_NUM_TIMERS - 1
+	.rept	XCHAL_NUM_TIMERS
 	wsr	a0, SREG_CCOMPARE + _index
 	.set	_index, _index + 1
 	.endr