From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: To: Stephen Rothwell From: Michael Neuling Subject: Re: [POWERPC] minor paca optimisation In-reply-to: <20070316174707.8a5ae78c.sfr@canb.auug.org.au> References: <20070316174707.8a5ae78c.sfr@canb.auug.org.au> Date: Fri, 16 Mar 2007 12:18:09 -0500 Message-ID: <12742.1174065489@neuling.org> Cc: ppc-dev , paulus@samba.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > Move the slb_shadow_ptr field into the first cache line since it is > (like evrything there) read only after boot. It is in fact statically > initialised and there after only read. > > Signed-off-by: Stephen Rothwell Acked-by: Michael Neuling > --- > include/asm-powerpc/paca.h | 3 +-- > 1 files changed, 1 insertions(+), 2 deletions(-) > > -- > Cheers, > Stephen Rothwell sfr@canb.auug.org.au > > diff --git a/include/asm-powerpc/paca.h b/include/asm-powerpc/paca.h > index 0d3adc0..4de851d 100644 > --- a/include/asm-powerpc/paca.h > +++ b/include/asm-powerpc/paca.h > @@ -70,6 +70,7 @@ struct paca_struct { > s16 hw_cpu_id; /* Physical processor number */ > u8 cpu_start; /* At startup, processor spins until */ > /* this becomes non-zero. */ > + struct slb_shadow *slb_shadow_ptr; > > /* > * Now, starting in cacheline 2, the exception save areas > @@ -101,8 +102,6 @@ struct paca_struct { > u64 user_time; /* accumulated usermode TB ticks */ > u64 system_time; /* accumulated system TB ticks */ > u64 startpurr; /* PURR/TB value snapshot */ > - > - struct slb_shadow *slb_shadow_ptr; > }; > > extern struct paca_struct paca[]; > -- > 1.5.0.3 > > _______________________________________________ > Linuxppc-dev mailing list > Linuxppc-dev@ozlabs.org > https://ozlabs.org/mailman/listinfo/linuxppc-dev >