diff options
author | Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp> | 2007-12-12 08:11:09 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2008-01-29 05:15:00 -0500 |
commit | 991f8b6ac5a7284612679f4a095578b460555e8f (patch) | |
tree | ca8ce1e3dc959f4242a7482a2bcc2225cab7ddb6 /arch/mips | |
parent | c9662341f8a09cffd7234a89cc066c342fe343bf (diff) |
[MIPS] move vr41xx_calculate_clock_frequency() to plat_time_init()
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>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/vr41xx/common/init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/vr41xx/common/init.c b/arch/mips/vr41xx/common/init.c index 8d760df686c4..76d4b5ed3fc0 100644 --- a/arch/mips/vr41xx/common/init.c +++ b/arch/mips/vr41xx/common/init.c | |||
@@ -40,6 +40,8 @@ void __init plat_time_init(void) | |||
40 | { | 40 | { |
41 | unsigned long tclock; | 41 | unsigned long tclock; |
42 | 42 | ||
43 | vr41xx_calculate_clock_frequency(); | ||
44 | |||
43 | tclock = vr41xx_get_tclock_frequency(); | 45 | tclock = vr41xx_get_tclock_frequency(); |
44 | if (current_cpu_data.processor_id == PRID_VR4131_REV2_0 || | 46 | if (current_cpu_data.processor_id == PRID_VR4131_REV2_0 || |
45 | current_cpu_data.processor_id == PRID_VR4131_REV2_1) | 47 | current_cpu_data.processor_id == PRID_VR4131_REV2_1) |
@@ -50,8 +52,6 @@ void __init plat_time_init(void) | |||
50 | 52 | ||
51 | void __init plat_mem_setup(void) | 53 | void __init plat_mem_setup(void) |
52 | { | 54 | { |
53 | vr41xx_calculate_clock_frequency(); | ||
54 | |||
55 | iomem_resource_init(); | 55 | iomem_resource_init(); |
56 | } | 56 | } |
57 | 57 | ||