Kaynağa Gözat

reorder struct prop_local_single to remove padding on 64 bit builds

reorder structure to remove 8 bytes of padding on 64 bit builds

(also removes 8 bytes from task_struct)

Signed-off-by: Richard Kennedy <richard@rsk.demon.co.uk>
Cc: peterz@infradead.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Richard Kennedy 17 yıl önce
ebeveyn
işleme
3fb669dd6e
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      include/linux/proportions.h

+ 1 - 1
include/linux/proportions.h

@@ -104,8 +104,8 @@ struct prop_local_single {
 	 * snapshot of the last seen global state
 	 * snapshot of the last seen global state
 	 * and a lock protecting this state
 	 * and a lock protecting this state
 	 */
 	 */
-	int shift;
 	unsigned long period;
 	unsigned long period;
+	int shift;
 	spinlock_t lock;		/* protect the snapshot state */
 	spinlock_t lock;		/* protect the snapshot state */
 };
 };