]> git.hungrycats.org Git - linux/commitdiff
PPC32: Fix a rounding error in the bootwrapper udelay.
authorTom Rini <trini@kernel.crashing.org>
Wed, 17 Sep 2003 01:11:23 +0000 (18:11 -0700)
committerTom Rini <trini@kernel.crashing.org>
Wed, 17 Sep 2003 01:11:23 +0000 (18:11 -0700)
From Milton Miller.

arch/ppc/boot/common/util.S

index a9077974985a4125abef14ef3f3aa7a4eaaed84f..9682aac75a9a5e9ce678b7a38b2fab0b7e8d7188 100644 (file)
@@ -198,7 +198,7 @@ udelay:
         *  timebase_period_ns defaults to 60 (16.6MHz) */
        lis     r5,timebase_period_ns@ha
        lwz     r5,timebase_period_ns@l(r5)
-       addi    r4,r4,r5
+       add     r4,r4,r5
        addi    r4,r4,-1
        divw    r4,r4,r5        /* BUS ticks */
 1:     mftbu   r5