]> Pileus Git - ~andy/linux/commit
time: Move arch_gettimeoffset() usage into timekeeping_get_ns()
authorJohn Stultz <john.stultz@linaro.org>
Fri, 13 Jul 2012 05:21:55 +0000 (01:21 -0400)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 15 Jul 2012 08:39:06 +0000 (10:39 +0200)
commitf2a5a0854efc62abe7f69e9947842cb135837f9a
tree02db590982e92fb514f2d8b1791a49ec5b02d484
parent1f4f948706bcec1b51bf6492bf04057d2e21e273
time: Move arch_gettimeoffset() usage into timekeeping_get_ns()

Since we call arch_gettimeoffset() in all the accessor
functions, move arch_gettimeoffset() calls into
timekeeping_get_ns() and timekeeping_get_ns_raw() to simplify
the code.

This also makes the code easier to maintain as we don't have to
worry about forgetting the arch_gettimeoffset() as has happened
in the past.

Signed-off-by: John Stultz <johnstul@us.ibm.com>
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-7-git-send-email-john.stultz@linaro.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/time/timekeeping.c