]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
powerpc/book3e-64: Wait til generic_calibrate_decr to enable decrementer
authorKumar Gala <galak@kernel.crashing.org>
Tue, 18 Aug 2009 19:08:31 +0000 (19:08 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 28 Aug 2009 04:24:13 +0000 (14:24 +1000)
Match what we do on 32-bit Book-E processors and enable the decrementer
in generic_calibrate_decr.  We need to make sure we disable the
decrementer early in boot since we currently use lazy (soft) interrupt
on 64-bit Book-E and possible get a decrementer exception before we
are ready for it.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/exceptions-64e.S

index 695d4847d22829bfb7e9e61c360150481deb1b32..3611b0e7d46d6293461c618b4faa013e2430c73f 100644 (file)
@@ -774,9 +774,11 @@ _STATIC(init_thread_book3e)
        /* Make sure interrupts are off */
        wrteei  0
 
-       /* disable watchdog and FIT and enable DEC interrupts */
-       lis     r3,TCR_DIE@h
+       /* disable all timers and clear out status */
+       li      r3,0
        mtspr   SPRN_TCR,r3
+       mfspr   r3,SPRN_TSR
+       mtspr   SPRN_TSR,r3
 
        blr