@ -48,13 +48,13 @@
struct lppaca {
/* cacheline 1 contains read-only data */
u 32 desc ; /* Eye catcher 0xD397D781 */
u 16 size ; /* Size of this struct */
__be 32 desc ; /* Eye catcher 0xD397D781 */
__be 16 size ; /* Size of this struct */
u8 reserved1 [ 3 ] ;
u8 __old_status ; /* Old status, including shared proc */
u8 reserved3 [ 14 ] ;
volatile u 32 dyn_hw_node_id ; /* Dynamic hardware node id */
volatile u 32 dyn_hw_proc_id ; /* Dynamic hardware proc id */
volatile __be 32 dyn_hw_node_id ; /* Dynamic hardware node id */
volatile __be 32 dyn_hw_proc_id ; /* Dynamic hardware proc id */
u8 reserved4 [ 56 ] ;
volatile u8 vphn_assoc_counts [ 8 ] ; /* Virtual processor home node */
/* associativity change counters */
@ -71,9 +71,9 @@ struct lppaca {
u8 fpregs_in_use ;
u8 pmcregs_in_use ;
u8 reserved8 [ 28 ] ;
u 64 wait_state_cycles ; /* Wait cycles for this proc */
__be 64 wait_state_cycles ; /* Wait cycles for this proc */
u8 reserved9 [ 28 ] ;
u 16 slb_count ; /* # of SLBs to maintain */
__be 16 slb_count ; /* # of SLBs to maintain */
u8 idle ; /* Indicate OS is idle */
u8 vmxregs_in_use ;
@ -87,17 +87,17 @@ struct lppaca {
* NOTE : This value will ALWAYS be zero for dedicated processors and
* will NEVER be zero for shared processors ( ie , initialized to a 1 ) .
*/
volatile u 32 yield_count ;
volatile u32 dispersion_count ; /* dispatch changed physical cpu */
volatile u 64 cmo_faults ; /* CMO page fault count */
volatile u 64 cmo_fault_time ; /* CMO page fault time */
volatile __be 32 yield_count ;
volatile __be32 dispersion_count ; /* dispatch changed physical cpu */
volatile __be 64 cmo_faults ; /* CMO page fault count */
volatile __be 64 cmo_fault_time ; /* CMO page fault time */
u8 reserved10 [ 104 ] ;
/* cacheline 4-5 */
u 32 page_ins ; /* CMO Hint - # page ins by OS */
__be 32 page_ins ; /* CMO Hint - # page ins by OS */
u8 reserved11 [ 148 ] ;
volatile u 64 dtl_idx ; /* Dispatch Trace Log head index */
volatile __be 64 dtl_idx ; /* Dispatch Trace Log head index */
u8 reserved12 [ 96 ] ;
} __attribute__ ( ( __aligned__ ( 0x400 ) ) ) ;
@ -123,12 +123,12 @@ static inline bool lppaca_shared_proc(struct lppaca *l)
* ESID is stored in the lower 64 bits , then the VSID .
*/
struct slb_shadow {
u 32 persistent ; /* Number of persistent SLBs */
u 32 buffer_length ; /* Total shadow buffer length */
u 64 reserved ;
__be 32 persistent ; /* Number of persistent SLBs */
__be 32 buffer_length ; /* Total shadow buffer length */
__be 64 reserved ;
struct {
u 64 esid ;
u 64 vsid ;
__be 64 esid ;
__be 64 vsid ;
} save_area [ SLB_NUM_BOLTED ] ;
} ____cacheline_aligned ;
@ -140,14 +140,14 @@ extern struct slb_shadow slb_shadow[];
struct dtl_entry {
u8 dispatch_reason ;
u8 preempt_reason ;
u 16 processor_id ;
u 32 enqueue_to_dispatch_time ;
u 32 ready_to_enqueue_time ;
u 32 waiting_to_ready_time ;
u 64 timebase ;
u 64 fault_addr ;
u 64 srr0 ;
u 64 srr1 ;
__be 16 processor_id ;
__be 32 enqueue_to_dispatch_time ;
__be 32 ready_to_enqueue_time ;
__be 32 waiting_to_ready_time ;
__be 64 timebase ;
__be 64 fault_addr ;
__be 64 srr0 ;
__be 64 srr1 ;
} ;
# define DISPATCH_LOG_BYTES 4096 /* bytes per cpu */