[PATCH 1/5] 86xx: Remove unnecessary loops_per_jiffy initialization code.

Subsystems: linux for powerpc (32-bit and 64-bit), the rest

STALE6926d

2 messages, 2 authors, 2007-08-29 · open the first message on its own page

[PATCH 1/5] 86xx: Remove unnecessary loops_per_jiffy initialization code.

From: Jon Loeliger <hidden>
Date: 2007-07-27 18:24:41

Signed-off-by: Jon Loeliger <redacted>
---

Note -- This is a rebased version of an earlier patch
          from July 17.  That one can be dropped.

 arch/powerpc/platforms/86xx/mpc86xx_hpcn.c |   14 ++------------
 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 e9eaa07..de90e6a 100644
--- a/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c
+++ b/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c
@@ -327,23 +327,13 @@ DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_AL, 0x5249, early_uli5249);
 static void __init
 mpc86xx_hpcn_setup_arch(void)
 {
+#ifdef CONFIG_PCI
 	struct device_node *np;
+#endif
 
 	if (ppc_md.progress)
 		ppc_md.progress("mpc86xx_hpcn_setup_arch()", 0);
 
-	np = of_find_node_by_type(NULL, "cpu");
-	if (np != 0) {
-		const unsigned int *fp;
-
-		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);
-	}
-
 #ifdef CONFIG_PCI
 	for (np = NULL; (np = of_find_node_by_type(np, "pci")) != NULL;) {
 		struct resource rsrc;
-- 
1.5.0.3

Re: [PATCH 1/5] 86xx: Remove unnecessary loops_per_jiffy initialization code.

From: Kumar Gala <hidden>
Date: 2007-08-29 22:33:08

On Fri, 27 Jul 2007, Jon Loeliger wrote:
Signed-off-by: Jon Loeliger <redacted>
---

Note -- This is a rebased version of an earlier patch
          from July 17.  That one can be dropped.

 arch/powerpc/platforms/86xx/mpc86xx_hpcn.c |   14 ++------------
 1 files changed, 2 insertions(+), 12 deletions(-)
applied.

- k
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help