]> err.no Git - linux-2.6/commitdiff
[POWERPC] 83xx: use default value of loops_per_jiffy
authorKumar Gala <galak@kernel.crashing.org>
Sat, 17 Feb 2007 15:42:18 +0000 (09:42 -0600)
committerKumar Gala <galak@kernel.crashing.org>
Sat, 17 Feb 2007 15:42:18 +0000 (09:42 -0600)
Use the default value setup by initialization of loops_per_jiffy, its close
enough for 83xx and will get fixed up by calibrate_delay().

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/platforms/83xx/mpc832x_mds.c
arch/powerpc/platforms/83xx/mpc834x_itx.c
arch/powerpc/platforms/83xx/mpc834x_mds.c
arch/powerpc/platforms/83xx/mpc8360e_pb.c

index 71d9c0f17e473129ac887392b438162b09f92570..980d45c6bd353c9847ced213b2b5f3952d584a62 100644 (file)
@@ -69,17 +69,6 @@ static void __init mpc832x_sys_setup_arch(void)
        if (ppc_md.progress)
                ppc_md.progress("mpc832x_sys_setup_arch()", 0);
 
-       np = of_find_node_by_type(NULL, "cpu");
-       if (np != 0) {
-               unsigned int *fp =
-                   (int *)get_property(np, "clock-frequency", NULL);
-               if (fp != 0)
-                       loops_per_jiffy = *fp / HZ;
-               else
-                       loops_per_jiffy = 50000000 / HZ;
-               of_node_put(np);
-       }
-
        /* Map BCSR area */
        np = of_find_node_by_name(NULL, "bcsr");
        if (np != 0) {
index 0a708efa1f561c22ae84cbd16cf474c8e776b642..3c009f6d4a4f12baec689d577cba7070cb76f097 100644 (file)
@@ -55,16 +55,6 @@ static void __init mpc834x_itx_setup_arch(void)
        if (ppc_md.progress)
                ppc_md.progress("mpc834x_itx_setup_arch()", 0);
 
-       np = of_find_node_by_type(NULL, "cpu");
-       if (np != 0) {
-               const unsigned int *fp =
-                       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;)
                add_bridge(np);
index 5a610485303bb880c136d2be30919289a5e9bbe0..e5d819166874641f39d44e64d8c95dc56d2e8121 100644 (file)
@@ -125,17 +125,6 @@ static void __init mpc834x_mds_setup_arch(void)
        if (ppc_md.progress)
                ppc_md.progress("mpc834x_mds_setup_arch()", 0);
 
-       np = of_find_node_by_type(NULL, "cpu");
-       if (np != 0) {
-               const unsigned int *fp =
-                       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;)
                add_bridge(np);
index e39e17f9b920803cb05298aa38907436f1aecc2f..83f1c94274d0dc51541bde231f69aeac07189c0a 100644 (file)
@@ -79,17 +79,6 @@ static void __init mpc8360_sys_setup_arch(void)
        if (ppc_md.progress)
                ppc_md.progress("mpc8360_sys_setup_arch()", 0);
 
-       np = of_find_node_by_type(NULL, "cpu");
-       if (np != 0) {
-               const unsigned int *fp =
-                   get_property(np, "clock-frequency", NULL);
-               if (fp != 0)
-                       loops_per_jiffy = *fp / HZ;
-               else
-                       loops_per_jiffy = 50000000 / HZ;
-               of_node_put(np);
-       }
-
        /* Map BCSR area */
        np = of_find_node_by_name(NULL, "bcsr");
        if (np != 0) {