timekeeping: Simplify getboottime()
authorThomas Gleixner <tglx@linutronix.de>
Wed, 16 Jul 2014 21:04:58 +0000 (21:04 +0000)
committerJohn Stultz <john.stultz@linaro.org>
Wed, 23 Jul 2014 22:01:47 +0000 (15:01 -0700)
commit02cba1598a2a3b689e79ad6dad2532521f638271
treec63b4bded9f6c6194d1c13947c8c30611e9f2b30
parent48f18fd6addc199f330d838d54fe7b0a0892adaa
timekeeping: Simplify getboottime()

Subtracting plain nsec values and converting to timespec is simpler
than the whole timespec math. Not really fastpath code, so the
division is not an issue.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: John Stultz <john.stultz@linaro.org>
kernel/time/timekeeping.c