[POWERPC] Minor paca optimisation
authorStephen Rothwell <sfr@canb.auug.org.au>
Fri, 16 Mar 2007 06:47:07 +0000 (17:47 +1100)
committerPaul Mackerras <paulus@samba.org>
Wed, 21 Mar 2007 11:35:51 +0000 (22:35 +1100)
Move the slb_shadow_ptr field into the first cache line since it is
(like everything there) read-only after boot.  It is in fact statically
initialised and thereafter only read.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Acked-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
include/asm-powerpc/paca.h

index 0d3adc09c847bdf20448a9539bfd0c2e8e6622ac..4de851d91f966e73a708f4e84a19121a2f3d4482 100644 (file)
@@ -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[];