aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorJon Loeliger <jdl@freescale.com>2007-07-27 14:24:36 -0400
committerKumar Gala <galak@kernel.crashing.org>2007-09-14 09:51:32 -0400
commitd347b3291b284e42c90b3f675a8332daf890b85a (patch)
treebff4a393fc4fe02fde5c40669edfa12d8cdb6689 /arch/powerpc
parent7f2862c34521ee6006f9c2678d68a02dc57b5444 (diff)
[POWERPC] 86xx: Remove unnecessary loops_per_jiffy initialization code.
Signed-off-by: Jon Loeliger <jdl@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/platforms/86xx/mpc86xx_hpcn.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c b/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c
index 47aafa76c933..3ec9d5a25750 100644
--- a/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c
+++ b/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c
@@ -132,23 +132,13 @@ static int mpc86xx_exclude_device(struct pci_controller *hose,
132static void __init 132static void __init
133mpc86xx_hpcn_setup_arch(void) 133mpc86xx_hpcn_setup_arch(void)
134{ 134{
135#ifdef CONFIG_PCI
135 struct device_node *np; 136 struct device_node *np;
137#endif
136 138
137 if (ppc_md.progress) 139 if (ppc_md.progress)
138 ppc_md.progress("mpc86xx_hpcn_setup_arch()", 0); 140 ppc_md.progress("mpc86xx_hpcn_setup_arch()", 0);
139 141
140 np = of_find_node_by_type(NULL, "cpu");
141 if (np != 0) {
142 const unsigned int *fp;
143
144 fp = of_get_property(np, "clock-frequency", NULL);
145 if (fp != 0)
146 loops_per_jiffy = *fp / HZ;
147 else
148 loops_per_jiffy = 50000000 / HZ;
149 of_node_put(np);
150 }
151
152#ifdef CONFIG_PCI 142#ifdef CONFIG_PCI
153 for (np = NULL; (np = of_find_node_by_type(np, "pci")) != NULL;) { 143 for (np = NULL; (np = of_find_node_by_type(np, "pci")) != NULL;) {
154 struct resource rsrc; 144 struct resource rsrc;