Skip to content

Commit

Permalink
[MIPS] move vr41xx_calculate_clock_frequency() to plat_time_init()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yoichi Yuasa authored and Ralf Baechle committed Jan 29, 2008
1 parent c966234 commit 991f8b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/mips/vr41xx/common/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -50,8 +52,6 @@ void __init plat_time_init(void)

void __init plat_mem_setup(void)
{
vr41xx_calculate_clock_frequency();

iomem_resource_init();
}

Expand Down

0 comments on commit 991f8b6

Please sign in to comment.