]> git.baikalelectronics.ru Git - kernel.git/commit
timer_list: Remove alignment padding on 64 bit when CONFIG_TIMER_STATS
authorRichard Kennedy <richard@rsk.demon.co.uk>
Wed, 20 Oct 2010 22:57:30 +0000 (15:57 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 21 Oct 2010 15:30:06 +0000 (17:30 +0200)
commit54cba20f01d0406a506e6f3a2a60c5468ca5f750
treef6729801645149d78e9e7b8b80e96417e539ce48
parenta27add35771ce23ac1e4885f5e46d311ca65fe72
timer_list: Remove alignment padding on 64 bit when CONFIG_TIMER_STATS

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>
include/linux/timer.h