diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-11-14 00:19:48 +0100 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2012-01-27 04:44:29 +0100 |
commit | 058892e632aa53be8255c2f0a42f9ace7bed66bb (patch) | |
tree | 3528cc45b80245fc8d3eba00d3cda80f782d0fe1 /kernel/time | |
parent | time: Remove most of xtime_lock usage in timekeeping.c (diff) | |
download | linux-058892e632aa53be8255c2f0a42f9ace7bed66bb.tar.xz linux-058892e632aa53be8255c2f0a42f9ace7bed66bb.zip |
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: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'kernel/time')
-rw-r--r-- | kernel/time/timekeeping.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c index 74bb5701e0b3..06f40ae13b7b 100644 --- a/kernel/time/timekeeping.c +++ b/kernel/time/timekeeping.c @@ -25,6 +25,8 @@ struct timekeeper { /* Current clocksource used for timekeeping. */ struct clocksource *clock; + /* NTP adjusted clock multiplier */ + u32 mult; /* The shift value of the current clocksource. */ int shift; @@ -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; /* The current time */ struct timespec xtime; |