From: Max Filippov Date: Mon, 10 Dec 2012 21:26:22 +0000 (+0400) Subject: xtensa: reset all timers on initialization X-Git-Tag: v3.8-rc1~44^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=79fcf52ba0dbcb9888812113df2d7248b41e9af1;p=profile%2Fcommon%2Fkernel-common.git xtensa: reset all timers on initialization There are XCHAL_NUM_TIMERS, reset them all. Signed-off-by: Max Filippov Signed-off-by: Chris Zankel --- diff --git a/arch/xtensa/kernel/head.S b/arch/xtensa/kernel/head.S index 9013ae0..0cd337a 100644 --- a/arch/xtensa/kernel/head.S +++ b/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