Skip to contentSkip to conversation

cpuidle menu: remove 8 bytes of padding on 64 bit builds

PATCH New Richard Kennedy 1 participant 1 message Jan 25, 2010 CPU idle time management framework

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cpuidle menu: remove 8 bytes of padding on 64 bit builds

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.

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

regards
Richard

drivers/cpuidle/governors/menu.c +1 -1
index 73655ae..1aea715 100644
@@ -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];