瀏覽代碼

[PATCH] x86_64: Reorder one field of the PDA to reduce padding

This reorders the mmu_state int in the pda, such that there is no more
padding (there currently is 4 bytes of padding).  Boot tested.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Arjan van de Ven 19 年之前
父節點
當前提交
df92004ce6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/asm-x86_64/pda.h

+ 1 - 1
include/asm-x86_64/pda.h

@@ -22,8 +22,8 @@ struct x8664_pda {
 	int nodenumber;		    /* number of current node */
 	int nodenumber;		    /* number of current node */
 	unsigned int __softirq_pending;
 	unsigned int __softirq_pending;
 	unsigned int __nmi_count;	/* number of NMI on this CPUs */
 	unsigned int __nmi_count;	/* number of NMI on this CPUs */
-	struct mm_struct *active_mm;
 	int mmu_state;     
 	int mmu_state;     
+	struct mm_struct *active_mm;
 	unsigned apic_timer_irqs;
 	unsigned apic_timer_irqs;
 } ____cacheline_aligned_in_smp;
 } ____cacheline_aligned_in_smp;