On Mon, 08 Jan 2007 18:00:06 +0000, linux-mips@xxxxxxxxxxxxxx wrote: > Author: Vitaly Wool <vitalywool@xxxxxxxxx> Thu Dec 28 17:14:05 2006 +0300 > Comitter: Ralf Baechle <ralf@xxxxxxxxxxxxxx> 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@xxxxxxxxxxxxx> 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 */