提交 e91948fd 编写于 作者: S Stephen Rothwell 提交者: Paul Mackerras

[POWERPC] Minor paca optimisation

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: NStephen Rothwell <sfr@canb.auug.org.au>
Acked-by: NMichael Neuling <mikey@neuling.org>
Signed-off-by: NPaul Mackerras <paulus@samba.org>
上级 0e680673
...@@ -70,6 +70,7 @@ struct paca_struct { ...@@ -70,6 +70,7 @@ struct paca_struct {
s16 hw_cpu_id; /* Physical processor number */ s16 hw_cpu_id; /* Physical processor number */
u8 cpu_start; /* At startup, processor spins until */ u8 cpu_start; /* At startup, processor spins until */
/* this becomes non-zero. */ /* this becomes non-zero. */
struct slb_shadow *slb_shadow_ptr;
/* /*
* Now, starting in cacheline 2, the exception save areas * Now, starting in cacheline 2, the exception save areas
...@@ -101,8 +102,6 @@ struct paca_struct { ...@@ -101,8 +102,6 @@ struct paca_struct {
u64 user_time; /* accumulated usermode TB ticks */ u64 user_time; /* accumulated usermode TB ticks */
u64 system_time; /* accumulated system TB ticks */ u64 system_time; /* accumulated system TB ticks */
u64 startpurr; /* PURR/TB value snapshot */ u64 startpurr; /* PURR/TB value snapshot */
struct slb_shadow *slb_shadow_ptr;
}; };
extern struct paca_struct paca[]; extern struct paca_struct paca[];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册