[MIPS] move vr41xx_calculate_clock_frequency() to plat_time_init()
authorYoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Wed, 12 Dec 2007 13:11:09 +0000 (22:11 +0900)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 29 Jan 2008 10:15:00 +0000 (10:15 +0000)
Moved vr41xx_calculate_clock_frequency() to plat_time_init().
This function relates to the timer function.

Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/vr41xx/common/init.c

index 8d760df686c45b42bd2410cfa2d384ebb9f11793..76d4b5ed3fc0127d9814af755769df7dc86fce9f 100644 (file)
@@ -40,6 +40,8 @@ void __init plat_time_init(void)
 {
        unsigned long tclock;
 
+       vr41xx_calculate_clock_frequency();
+
        tclock = vr41xx_get_tclock_frequency();
        if (current_cpu_data.processor_id == PRID_VR4131_REV2_0 ||
            current_cpu_data.processor_id == PRID_VR4131_REV2_1)
@@ -50,8 +52,6 @@ void __init plat_time_init(void)
 
 void __init plat_mem_setup(void)
 {
-       vr41xx_calculate_clock_frequency();
-
        iomem_resource_init();
 }