Skip to content

Commit

Permalink
xtensa: reset all timers on initialization
Browse files Browse the repository at this point in the history
There are XCHAL_NUM_TIMERS, reset them all.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Chris Zankel <chris@zankel.net>
  • Loading branch information
Max Filippov authored and Chris Zankel committed Dec 19, 2012
1 parent 90e3bc7 commit 79fcf52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/xtensa/kernel/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 79fcf52

Please sign in to comment.