linux-mips
[Top] [All Lists]

[PATCH] TXx9: Fix mips_hpt_frequency initialization

To: linux-mips@linux-mips.org
Subject: [PATCH] TXx9: Fix mips_hpt_frequency initialization
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Date: Thu, 31 Jul 2008 22:29:53 +0900 (JST)
Cc: ralf@linux-mips.org
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
The mips_hpt_frequency initialization code was lost in commit
94a4c32939dede9328c6e4face335eb8441fc18d ("TXx9: Add 64-bit support").

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
---
diff --git a/arch/mips/txx9/generic/setup.c b/arch/mips/txx9/generic/setup.c
index 1bc57d0..0afe94c 100644
--- a/arch/mips/txx9/generic/setup.c
+++ b/arch/mips/txx9/generic/setup.c
@@ -328,6 +328,9 @@ void __init arch_init_irq(void)
 
 void __init plat_time_init(void)
 {
+#ifdef CONFIG_CPU_TX49XX
+       mips_hpt_frequency = txx9_cpu_clock / 2;
+#endif
        txx9_board_vec->time_init();
 }
 

<Prev in Thread] Current Thread [Next in Thread>