diff options
author | Jon Loeliger <jdl@freescale.com> | 2007-07-27 14:24:52 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-08-16 21:01:50 -0400 |
commit | 7888fbf7bbf8840e83078eae3a537fd1cde46e6e (patch) | |
tree | 4fd24d3ebdcb8390ba83f1f359cae48babba14a8 /arch/powerpc/platforms/52xx/lite5200.c | |
parent | 0b9369f4934eb9933a1fbe991c5e8a4f9725da37 (diff) |
[POWERPC] 52xx: Remove unnecessary loops_per_jiffy initialization code
Signed-off-by: Jon Loeliger <jdl@freescale.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/52xx/lite5200.c')
-rw-r--r-- | arch/powerpc/platforms/52xx/lite5200.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/arch/powerpc/platforms/52xx/lite5200.c b/arch/powerpc/platforms/52xx/lite5200.c index 5c46e898fd4..84bd3da43af 100644 --- a/arch/powerpc/platforms/52xx/lite5200.c +++ b/arch/powerpc/platforms/52xx/lite5200.c | |||
@@ -109,22 +109,13 @@ static void lite5200_resume_finish(void __iomem *mbar) | |||
109 | 109 | ||
110 | static void __init lite5200_setup_arch(void) | 110 | static void __init lite5200_setup_arch(void) |
111 | { | 111 | { |
112 | #ifdef CONFIG_PCI | ||
112 | struct device_node *np; | 113 | struct device_node *np; |
114 | #endif | ||
113 | 115 | ||
114 | if (ppc_md.progress) | 116 | if (ppc_md.progress) |
115 | ppc_md.progress("lite5200_setup_arch()", 0); | 117 | ppc_md.progress("lite5200_setup_arch()", 0); |
116 | 118 | ||
117 | np = of_find_node_by_type(NULL, "cpu"); | ||
118 | if (np) { | ||
119 | const unsigned int *fp = | ||
120 | of_get_property(np, "clock-frequency", NULL); | ||
121 | if (fp != 0) | ||
122 | loops_per_jiffy = *fp / HZ; | ||
123 | else | ||
124 | loops_per_jiffy = 50000000 / HZ; | ||
125 | of_node_put(np); | ||
126 | } | ||
127 | |||
128 | /* CPU & Port mux setup */ | 119 | /* CPU & Port mux setup */ |
129 | mpc52xx_setup_cpu(); /* Generic */ | 120 | mpc52xx_setup_cpu(); /* Generic */ |
130 | lite5200_setup_cpu(); /* Platorm specific */ | 121 | lite5200_setup_cpu(); /* Platorm specific */ |