[patch 4/7] timekeeper: Reorder so the hot data is together

From: Thomas Gleixner
Date: Sun Nov 13 2011 - 18:21:03 EST


Keep all the interesting data in a single cache line.

Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
---
kernel/time/timekeeping.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Index: linux-2.6-tip/kernel/time/timekeeping.c
===================================================================
--- linux-2.6-tip.orig/kernel/time/timekeeping.c
+++ linux-2.6-tip/kernel/time/timekeeping.c
@@ -27,6 +27,8 @@ struct timekeeper {
struct clocksource *clock;
/* The shift value of the current clocksource. */
int shift;
+ /* NTP adjusted clock multiplier */
+ u32 mult;

/* Number of clock cycles in one NTP interval. */
cycle_t cycle_interval;
@@ -45,8 +47,6 @@ struct timekeeper {
/* Shift conversion between clock shifted nano seconds and
* ntp shifted nano seconds. */
int ntp_error_shift;
- /* NTP adjusted clock multiplier */
- u32 mult;
};

static struct timekeeper timekeeper;


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/