aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/powerpc/kernel/time.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/time.c b/arch/powerpc/kernel/time.c
index 82f2cabb4f47..9f264c2f02c3 100644
--- a/arch/powerpc/kernel/time.c
+++ b/arch/powerpc/kernel/time.c
@@ -610,6 +610,17 @@ void __init generic_calibrate_decr(void)
610 ppc_proc_freq = *fp; 610 ppc_proc_freq = *fp;
611 } 611 }
612 } 612 }
613#ifdef CONFIG_BOOKE
614 /* Set the time base to zero */
615 mtspr(SPRN_TBWL, 0);
616 mtspr(SPRN_TBWU, 0);
617
618 /* Clear any pending timer interrupts */
619 mtspr(SPRN_TSR, TSR_ENW | TSR_WIS | TSR_DIS | TSR_FIS);
620
621 /* Enable decrementer interrupt */
622 mtspr(SPRN_TCR, TCR_DIE);
623#endif
613 if (!node_found) 624 if (!node_found)
614 printk(KERN_ERR "WARNING: Estimating processor frequency " 625 printk(KERN_ERR "WARNING: Estimating processor frequency "
615 "(not found)\n"); 626 "(not found)\n");