* Re: [MIPS] PNX8550: Fix system timer support
[not found] <S28574475AbXAHSAL/20070108180011Z+188138@ftp.linux-mips.org>
@ 2007-01-09 1:23 ` Atsushi Nemoto
2007-01-09 11:45 ` Ralf Baechle
0 siblings, 1 reply; 2+ messages in thread
From: Atsushi Nemoto @ 2007-01-09 1:23 UTC (permalink / raw)
To: linux-mips; +Cc: ralf, danieljlaird
On Mon, 08 Jan 2007 18:00:06 +0000, linux-mips@linux-mips.org wrote:
> Author: Vitaly Wool <vitalywool@gmail.com> Thu Dec 28 17:14:05 2006 +0300
> Comitter: Ralf Baechle <ralf@linux-mips.org> Mon Jan 8 17:48:25 2007 +0000
> Commit: 390964852cbd7d5c589de60223d7cf73e9cbcdb9
> Gitweb: http://www.linux-mips.org/g/linux/39096485
> Branch: master
>
> the patch inlined below restores proper time accounting for PNX8550-based
> boards. It also gets rid of #ifdef in the generic code which becomes
> unnecessary then.
>
> It's functionally identical to the previous patch with the same name but
> it has minor comments from Atsushi and Sergei taken into account.
Please apply this patch too. Daniel confirmed this patch fixes a long
hang on boot.
Subject: PNX8550: Fix system timer initialization
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
diff --git a/arch/mips/philips/pnx8550/common/time.c b/arch/mips/philips/pnx8550/common/time.c
index 08ebc3d..9d9fc71 100644
--- a/arch/mips/philips/pnx8550/common/time.c
+++ b/arch/mips/philips/pnx8550/common/time.c
@@ -80,6 +80,7 @@ void pnx8550_time_init(void)
*/
mips_hpt_frequency = 27UL * ((1000000UL * n)/(m * pow2p));
cpj = (mips_hpt_frequency + HZ / 2) / HZ;
+ write_c0_count(0);
timer_ack();
/* Setup Timer 2 */
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-01-09 11:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <S28574475AbXAHSAL/20070108180011Z+188138@ftp.linux-mips.org>
2007-01-09 1:23 ` [MIPS] PNX8550: Fix system timer support Atsushi Nemoto
2007-01-09 11:45 ` Ralf Baechle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox