[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1264417156.2039.9.camel@localhost>
Date: Mon, 25 Jan 2010 10:59:16 +0000
From: Richard Kennedy <richard@....demon.co.uk>
To: Arjan van de Ven <arjan@...ux.intel.com>,
Andrew Morton <akpm@...ux-foundation.org>
Cc: lkml <linux-kernel@...r.kernel.org>
Subject: [PATCH] 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.
Signed-off-by: Richard Kennedy <richard@....demon.co.uk>
-----
patch against 2.6.33-rc5
compile tested only
regards
Richard
diff --git a/drivers/cpuidle/governors/menu.c b/drivers/cpuidle/governors/menu.c
index 73655ae..1aea715 100644
--- a/drivers/cpuidle/governors/menu.c
+++ b/drivers/cpuidle/governors/menu.c
@@ -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];
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists