Explorar o código

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 %!s(int64=13) %!d(string=hai) anos
pai
achega
79fcf52ba0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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