[PATCH][WIP][RFC] powerpc: fixup lwsync at runtime

Michael Ellerman michael at ellerman.id.au
Sat Jun 21 20:27:23 EST 2008


On Fri, 2008-06-20 at 11:36 -0500, Kumar Gala wrote:
> This is a work in progress towards make lwsync fixed up at runtime.  The
> patch is based (requires) the module refactoring patch.  Some of this code
> should be reworked based on the code patching work from Michael.  Also,
> ppc64 and vdso support needs a bit of cleaning up.

Hi Kumar,

This will clash in practice, though not in spirit, with the stuff I've
been working on to allow alternative feature sections. The code is in my
tree on kernel.org if you want to check it out, I was about to send
yesterday it but realised it breaks if you have exception table entries
in your alternative case code >:/

http://git.kernel.org/?p=linux/kernel/git/mpe/linux-2.6.git;a=summary

> Some questions:
> * How do we determine at runtime if we need to convert sync to lwsync.
> This is simliar to cpu_feature but has the issue that cpu_feature is about
> either having code in or not.

Isn't it just if cpus_possible = 1 ?

> * Do we simplify the section of fixup information and remove the mask and
> value since we don't use them and they double the size of the section

I guess it depends how many you end up with. My patches add another two
longs to the fixup entry also. It is all freed after boot.

cheers

-- 
Michael Ellerman
OzLabs, IBM Australia Development Lab

wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)

We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20080621/7f965eac/attachment.pgp>


More information about the Linuxppc-dev mailing list