time: Provide get_xtime_and_monotonic_offset()
authorTorben Hohn <torbenh@gmx.de>
Thu, 27 Jan 2011 14:59:05 +0000 (15:59 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 31 Jan 2011 13:55:42 +0000 (14:55 +0100)
commit48cf76f7104f655bbd48a75c7759dce82c3e1ab6
tree2b3cf138fd277ba9c551d75ccbe575a40974560a
parentfbad1ea94159a71bc0f68b00e57ae803606af9fb
time: Provide get_xtime_and_monotonic_offset()

The hrtimer code accesses timekeeping variables under
xtime_lock. Provide a sensible accessor function and use it.

[ tglx: Removed the conditionals, unused variable, fixed codingstyle
   and massaged changelog ]

Signed-off-by: Torben Hohn <torbenh@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: johnstul@us.ibm.com
Cc: yong.zhang0@gmail.com
Cc: hch@infradead.org
LKML-Reference: <20110127145905.23248.30458.stgit@localhost>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/time.h
kernel/hrtimer.c
kernel/time/timekeeping.c