All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH]  cpuidle menu: remove 8 bytes of padding on 64 bit builds
@ 2010-01-25 10:59 Richard Kennedy
  0 siblings, 0 replies; only message in thread
From: Richard Kennedy @ 2010-01-25 10:59 UTC (permalink / raw)
  To: Arjan van de Ven, Andrew Morton; +Cc: lkml

reorder struct menu_device to remove 8 bytes of padding on 64 bit
builds. Size drops from 136 to 128 bytes, so possibly needing one fewer
cache lines.


Signed-off-by: Richard Kennedy <richard@rsk.demon.co.uk>

-----
patch against 2.6.33-rc5
compile tested only

regards
Richard


diff --git a/drivers/cpuidle/governors/menu.c b/drivers/cpuidle/governors/menu.c
index 73655ae..1aea715 100644
--- a/drivers/cpuidle/governors/menu.c
+++ b/drivers/cpuidle/governors/menu.c
@@ -100,8 +100,8 @@ struct menu_device {
 	int             needs_update;
 
 	unsigned int	expected_us;
-	u64		predicted_us;
 	unsigned int	measured_us;
+	u64		predicted_us;
 	unsigned int	exit_us;
 	unsigned int	bucket;
 	u64		correction_factor[BUCKETS];



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2010-01-25 10:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-25 10:59 [PATCH] cpuidle menu: remove 8 bytes of padding on 64 bit builds Richard Kennedy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.