sh: Fixed the TMU0 reload value on resume
authorFrancesco VIRLINZI <francesco.virlinzi@st.com>
Wed, 15 Oct 2008 09:58:24 +0000 (11:58 +0200)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 13 Nov 2008 08:40:30 +0000 (17:40 +0900)
This patch fixes the TMU0 interrupt frequency on suspend/resume.
During the resume the kernel reprograms the TMU0.ClockEvent mode
but if the mode is periodic than the TMU0.TCOR is updated with
a random wrong value without taking care latest valid saved value.

There was no problem with No_HZ system where TMU0.TCOR isn't used.

Signed-off-by: Francesco M. Virlinzi <francesco.virlinzi@st.com>
Signed-off-by: Stuart Menefy <stuart.menefy@st.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>

No differences found