]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd68b0d697009890308322b0613d8dd616de65cb7
tree9b3d581e4c666ea4dcf356da35473406bf5164e0
parent39a94033bdeb2c5af97ebb723f112305bbe6e5dc
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