cpuidle menu: remove 8 bytes of padding on 64 bit builds
authorRichard Kennedy <richard@rsk.demon.co.uk>
Fri, 5 Mar 2010 21:42:30 +0000 (13:42 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 6 Mar 2010 19:26:28 +0000 (11:26 -0800)
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>
Cc: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/cpuidle/governors/menu.c

index 73655aeb3a60993e28fbbf9ea7930128e5a23407..1aea7157d8fffa603ca79d4cca7552db0bb313bd 100644 (file)
@@ -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];