[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1217594188.2953.24.camel@castor.localdomain>
Date: Fri, 01 Aug 2008 13:36:28 +0100
From: Richard Kennedy <richard@....demon.co.uk>
To: peterz@...radead.org
Cc: lkml <linux-kernel@...r.kernel.org>, Ingo Molnar <mingo@...e.hu>
Subject: [PATCH] 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@....demon.co.uk>
---
patch against 2.6.27-rc1
compiled & tested on AMD64 desktop
Richard
include/linux/proportions.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/linux/proportions.h b/include/linux/proportions.h
index 5afc1b2..cf793bb 100644
--- a/include/linux/proportions.h
+++ b/include/linux/proportions.h
@@ -104,8 +104,8 @@ struct prop_local_single {
* snapshot of the last seen global state
* and a lock protecting this state
*/
- int shift;
unsigned long period;
+ int shift;
spinlock_t lock; /* protect the snapshot state */
};
--
1.5.5.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists