* [PATCH] reorder struct prop_local_single to remove padding on 64 bit builds
@ 2008-08-01 12:36 Richard Kennedy
2008-08-15 15:15 ` Ingo Molnar
0 siblings, 1 reply; 2+ messages in thread
From: Richard Kennedy @ 2008-08-01 12:36 UTC (permalink / raw)
To: peterz; +Cc: lkml, Ingo Molnar
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>
---
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] reorder struct prop_local_single to remove padding on 64 bit builds
2008-08-01 12:36 [PATCH] reorder struct prop_local_single to remove padding on 64 bit builds Richard Kennedy
@ 2008-08-15 15:15 ` Ingo Molnar
0 siblings, 0 replies; 2+ messages in thread
From: Ingo Molnar @ 2008-08-15 15:15 UTC (permalink / raw)
To: Richard Kennedy; +Cc: peterz, lkml, Peter Zijlstra
* Richard Kennedy <richard@rsk.demon.co.uk> wrote:
> reorder structure to remove 8 bytes of padding on 64 bit builds
>
> (also removes 8 bytes from task_struct)
applied all 3 patches to tip/sched/devel - thanks Richard!
Ingo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-08-15 15:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-01 12:36 [PATCH] reorder struct prop_local_single to remove padding on 64 bit builds Richard Kennedy
2008-08-15 15:15 ` Ingo Molnar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®