Commit 058892e6 authored by Thomas Gleixner's avatar Thomas Gleixner Committed by John Stultz

time: Reorder so the hot data is together

Keep all the interesting data in a single cache line.

CC: Thomas Gleixner <tglx@linutronix.de>
CC: Eric Dumazet <eric.dumazet@gmail.com>
CC: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
parent 92c1d3ed
...@@ -25,6 +25,8 @@ ...@@ -25,6 +25,8 @@
struct timekeeper { struct timekeeper {
/* Current clocksource used for timekeeping. */ /* Current clocksource used for timekeeping. */
struct clocksource *clock; struct clocksource *clock;
/* NTP adjusted clock multiplier */
u32 mult;
/* The shift value of the current clocksource. */ /* The shift value of the current clocksource. */
int shift; int shift;
...@@ -45,8 +47,6 @@ struct timekeeper { ...@@ -45,8 +47,6 @@ struct timekeeper {
/* Shift conversion between clock shifted nano seconds and /* Shift conversion between clock shifted nano seconds and
* ntp shifted nano seconds. */ * ntp shifted nano seconds. */
int ntp_error_shift; int ntp_error_shift;
/* NTP adjusted clock multiplier */
u32 mult;
/* The current time */ /* The current time */
struct timespec xtime; struct timespec xtime;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment