[PATCH] Fix ppc32 smp build.

Paul Mackerras paulus at samba.org
Sun Nov 6 21:51:16 EST 2005

David Woodhouse writes:

> Fix PPC32 SMP build -- instead of setting the now non-existent
> smp_tb_synchronized when the timebases are synchronised, we clear the
> CPU_FTR_USE_TB bit when they're not. Does this look sane, and did I miss
> cases where they're not synchronised?

I don't like clearing the USE_TB bit, since the alternative is to use
the RTC (a la 601), and most cpus will take an illegal instruction
exception if you try to do that.

If we really can get unsynchronized timebases still, then I suppose we
need to bring back the smp_tb_synchronized variable, but I was
assuming that we could get the timebases synchronized one way or
another.  If the to-and-fro involved in synchronizing the timebases
doesn't work then there is an awful lot of other stuff that is going
to fall on its face too...  Maybe the solution is just to panic if we
can't get the other cpu to talk to us enough to synchronize the


More information about the Linuxppc-dev mailing list