time: Refactor accumulation of nsecs to secs
authorJohn Stultz <john.stultz@linaro.org>
Fri, 13 Jul 2012 05:21:54 +0000 (01:21 -0400)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 15 Jul 2012 08:39:06 +0000 (10:39 +0200)
commit1f4f948706bcec1b51bf6492bf04057d2e21e273
tree1677cf2f130da9ff53259fdb658fa53a4ef81b4e
parent1e75fa8be9fb61e1af46b5b3b176347a4c958ca1
time: Refactor accumulation of nsecs to secs

We do the exact same logic moving nsecs to secs in the
timekeeper in multiple places, so condense this into a
single function.

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