Messages in this thread Patch in this message | | | Date | Sun, 13 Nov 2011 23:19:48 -0000 | From | Thomas Gleixner <> | Subject | [patch 4/7] timekeeper: Reorder so the hot data is together |
| |
Keep all the interesting data in a single cache line.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de> --- 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;
| |