Skip to content

Commit

Permalink
timer_list: Remove alignment padding on 64 bit when CONFIG_TIMER_STATS
Browse files Browse the repository at this point in the history
Reorder struct timer_list to remove 8 bytes of alignment padding on 64
bit builds when CONFIG_TIMER_STATS is selected.

timer_list is widely used across the kernel so many structures will
benefit and shrink in size.

For example, with my config on x86_64
	per_cpu_dm_data shrinks from 136 to 128 bytes
and
	ahci_port_priv shrinks from 1032 to 968 bytes.

Signed-off-by: Richard Kennedy <richard@rsk.demon.co.uk>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Richard Kennedy authored and Thomas Gleixner committed Oct 21, 2010
1 parent a386b5a commit d095902
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ struct timer_list {
int slack;

#ifdef CONFIG_TIMER_STATS
int start_pid;
void *start_site;
char start_comm[16];
int start_pid;
#endif
#ifdef CONFIG_LOCKDEP
struct lockdep_map lockdep_map;
Expand Down

0 comments on commit d095902

Please sign in to comment.