sh: clkfwk: Safer resume from hibernation.
authorFrancesco VIRLINZI <francesco.virlinzi@st.com>
Fri, 13 Mar 2009 08:08:01 +0000 (08:08 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 16 Mar 2009 11:11:00 +0000 (20:11 +0900)
commit50cca715a64b66ccf173767d94d4020ea0a6129c
tree56f26236a191e98825dca07e69835e42ee019d1d
parente9edb3fec2260b5a64e9ca9e09160b74f1b106e3
sh: clkfwk: Safer resume from hibernation.

This patch fixes a possible problem in the resume from
hibenration. It temporaneally saves the clk->rate on the
stack to avoid any possible change during the clk->set_parent(..)
call.

Signed-off-by: Francesco Virlinzi <francesco.virlinzi@st.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/cpu/clock.c