sh: Fixed the TMU0 reload value on resume

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>

authored by Francesco VIRLINZI and committed by Paul Mundt 2cd0ebc8 10840f03

+1 -1
+1 -1
arch/sh/kernel/timers/timer-tmu.c
··· 120 120 { 121 121 switch (mode) { 122 122 case CLOCK_EVT_MODE_PERIODIC: 123 - ctrl_outl(ctrl_inl(TMU0_TCNT), TMU0_TCOR); 123 + ctrl_outl(tmu_latest_interval[TMU0], TMU0_TCOR); 124 124 break; 125 125 case CLOCK_EVT_MODE_ONESHOT: 126 126 ctrl_outl(0, TMU0_TCOR);