timekeeping: Cache optimize struct timekeeper
authorThomas Gleixner <tglx@linutronix.de>
Wed, 16 Jul 2014 21:04:07 +0000 (21:04 +0000)
committerJohn Stultz <john.stultz@linaro.org>
Wed, 23 Jul 2014 17:17:56 +0000 (10:17 -0700)
commit3fdb14fd1df70325e1e91e1203a699a4803ed741
tree9b3d581e4c666ea4dcf356da35473406bf5164e0
parentc905fae43f61c2b4508fc01722e8db61b6b8ac0b
timekeeping: Cache optimize struct timekeeper

struct timekeeper is quite badly sorted for the hot readout path. Most
time access functions need to load two cache lines.

Rearrange it so ktime_get() and getnstimeofday() are happy with a
single cache line.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: John Stultz <john.stultz@linaro.org>
include/linux/timekeeper_internal.h
kernel/time/timekeeping.c