Skip to content
Commit 2cd0ebc8 authored by Francesco VIRLINZI's avatar Francesco VIRLINZI Committed by Paul Mundt
Browse files

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: default avatarFrancesco M. Virlinzi <francesco.virlinzi@st.com>
Signed-off-by: default avatarStuart Menefy <stuart.menefy@st.com>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 10840f03
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment