diff options
author | John Stultz <john.stultz@linaro.org> | 2012-07-13 05:21:53 (GMT) |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2012-07-15 08:39:06 (GMT) |
commit | 1e75fa8be9fb61e1af46b5b3b176347a4c958ca1 (patch) | |
tree | b353cf5c5ae0c17e7813d7e1e86a403227b35fc7 /mm/memory.c | |
parent | fee84c43e6afc42295ae8058cbbef9ea5633926c (diff) | |
download | linux-1e75fa8be9fb61e1af46b5b3b176347a4c958ca1.tar.xz |
time: Condense timekeeper.xtime into xtime_sec
The timekeeper struct has a xtime_nsec, which keeps the
sub-nanosecond remainder. This ends up being somewhat
duplicative of the timekeeper.xtime.tv_nsec value, and we
have to do extra work to keep them apart, copying the full
nsec portion out and back in over and over.
This patch simplifies some of the logic by taking the timekeeper
xtime value and splitting it into timekeeper.xtime_sec and
reuses the timekeeper.xtime_nsec for the sub-second portion
(stored in higher res shifted nanoseconds).
This simplifies some of the accumulation logic. And will
allow for more accurate timekeeping once the vsyscall code
is updated to use the shifted nanosecond remainder.
Signed-off-by: John Stultz <john.stultz@linaro.org>
Reviewed-by: Ingo Molnar <mingo@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Richard Cochran <richardcochran@gmail.com>
Cc: Prarit Bhargava <prarit@redhat.com>
Link: http://lkml.kernel.org/r/1342156917-25092-5-git-send-email-john.stultz@linaro.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'mm/memory.c')
0 files changed, 0 insertions, 0 deletions