Skip to content

Commit

Permalink
cpuidle menu: remove 8 bytes of padding on 64 bit builds
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Arjan van de Ven <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Richard Kennedy authored and torvalds committed Mar 6, 2010
1 parent 77079db commit 56e6943
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/cpuidle/governors/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 56e6943

Please sign in to comment.