powerpc: Remove lppaca structure from the PACA

Stephen Rothwell sfr at canb.auug.org.au
Fri Jan 13 13:39:29 EST 2006


On Fri, 13 Jan 2006 10:26:42 +1100 David Gibson <david at gibson.dropbear.id.au> wrote:
>
> Paulus, resend for your consideration..
> 
> At present the lppaca - the structure shared with the iSeries
> hypervisor and phyp is contained within the PACA, our own low-level
> per-cpu structure.  This doesn't have to be so, the patch below
> removes it, making a separate array of lppaca structures.
> 
> This saves approximately 500*NR_CPUS bytes of image size and kernel
> memory, because we don't need aligning gap between the Linux and
> hypervisor portions of every PACA.  On the other hand it means an
> extra level of dereference in many accesses to the lppaca.
> 
> The patch also gets rid of several places where we assign the paca
> address to a local variable for no particular reason.
> 
> Does this seem like a good idea or not?
> 
> Signed-off-by: David Gibson <dwg at au1.ibm.com>

Acked-by: Stephen Rothwell <sfr at canb.auug.org.au>

-- 
Cheers,
Stephen Rothwell                    sfr at canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://ozlabs.org/pipermail/linuxppc64-dev/attachments/20060113/ea119276/attachment.pgp 


More information about the Linuxppc64-dev mailing list