Commit 7888fbf7 authored by Jon Loeliger's avatar Jon Loeliger Committed by Paul Mackerras

[POWERPC] 52xx: Remove unnecessary loops_per_jiffy initialization code

Signed-off-by: default avatarJon Loeliger <jdl@freescale.com>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 0b9369f4
...@@ -109,22 +109,13 @@ static void lite5200_resume_finish(void __iomem *mbar) ...@@ -109,22 +109,13 @@ static void lite5200_resume_finish(void __iomem *mbar)
static void __init lite5200_setup_arch(void) static void __init lite5200_setup_arch(void)
{ {
#ifdef CONFIG_PCI
struct device_node *np; struct device_node *np;
#endif
if (ppc_md.progress) if (ppc_md.progress)
ppc_md.progress("lite5200_setup_arch()", 0); ppc_md.progress("lite5200_setup_arch()", 0);
np = of_find_node_by_type(NULL, "cpu");
if (np) {
const unsigned int *fp =
of_get_property(np, "clock-frequency", NULL);
if (fp != 0)
loops_per_jiffy = *fp / HZ;
else
loops_per_jiffy = 50000000 / HZ;
of_node_put(np);
}
/* CPU & Port mux setup */ /* CPU & Port mux setup */
mpc52xx_setup_cpu(); /* Generic */ mpc52xx_setup_cpu(); /* Generic */
lite5200_setup_cpu(); /* Platorm specific */ lite5200_setup_cpu(); /* Platorm specific */
......
Markdown is supported
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