]> git.baikalelectronics.ru Git - kernel.git/commit
time: Rework timekeeping functions to take timekeeper ptr as argument
authorJohn Stultz <john.stultz@linaro.org>
Fri, 13 Jul 2012 05:21:57 +0000 (01:21 -0400)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 15 Jul 2012 08:39:07 +0000 (10:39 +0200)
commit3fcccaccf5a8ec11606b225264fc55be24f18308
tree1c70d5187ecb27a0b5e0ae2882d978c8c943211d
parent56281c4be15a6328f6c381ffbad51b35f19f933b
time: Rework timekeeping functions to take timekeeper ptr as argument

As part of cleaning up the timekeeping code, this patch converts
a number of internal functions to takei a timekeeper ptr as an
argument, so that the internal functions don't access the global
timekeeper structure directly. This allows for further optimizations
to reduce lock hold time later.

This patch has been updated to include more consistent usage of the
timekeeper value, by making sure it is always passed as a argument
to non top-level functions.

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