sh: Derive calibrate_delay lpj from clk fwk.
authorPaul Mundt <lethal@linux-sh.org>
Mon, 8 Sep 2008 11:47:42 +0000 (20:47 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 8 Sep 2008 11:47:42 +0000 (20:47 +0900)
commitcf204fa797cf968de8043491cd469ad0321d0940
tree0faa7e866c1ce490973d61a5d1e277ee47ab3c54
parent4eb5845d6cbdb9bf03f563c22f3a54115121858f
sh: Derive calibrate_delay lpj from clk fwk.

All CPUs must have a sensible cpu_clk definition these days, which we can
safely use for deriving the preset loops_per_jiffy. The only odd one out
is SH-5, which hasn't been hammered in to the framework yet.

Based on the ST patch.

Signed-off-by: Francesco Virlinzi <francesco.virlinzi@st.com>
Signed-off-by: Carl Shaw <carl.shaw@st.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/Kconfig
arch/sh/kernel/setup.c