On Jun 21, 2008, at 7:20 PM, Benjamin Herrenschmidt wrote:

On Sat, 2008-06-21 at 11:07 -0500, Kumar Gala wrote:

Remind me why we want to do that ? ie. can't we just use lwsync
unconditionally ? It's supposed to degrade to sync on CPUs that
don't
support it, or is that broken on some parts ?

I believe its broken on e500v1/v2.  However I'll double check.

e500v1/v2 treat lwsync as a illop.

An option is that if you get a program check instead, you can "fixup"
the sync from the exception too...


We could. However it just feels a bit dirty to illop in the kernel and fix it up.

Plus, I think David Woodhouse had some ideas about being able to generate a single SMP/no-SMP kernel image like x86 apparently does with some form of run time fixup. It would seem that was be in the same realm as the lwsync fixup I'm looking at.

- k

_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev

Reply via email to