public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
* [POWERPC] minor paca optimisation
@ 2007-03-16  6:47 Stephen Rothwell
  2007-03-16 17:18 ` Michael Neuling
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Rothwell @ 2007-03-16  6:47 UTC (permalink / raw)
  To: paulus; +Cc: ppc-dev

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 <sfr@canb•auug.org.au>
---
 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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-03-16 17:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-16  6:47 [POWERPC] minor paca optimisation Stephen Rothwell
2007-03-16 17:18 ` Michael Neuling

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox