]> git.baikalelectronics.ru Git - kernel.git/commit
timekeeping: Minor fixup for timespec64->timespec assignment
authorJohn Stultz <john.stultz@linaro.org>
Wed, 23 Jul 2014 21:35:39 +0000 (14:35 -0700)
committerJohn Stultz <john.stultz@linaro.org>
Wed, 23 Jul 2014 22:01:56 +0000 (15:01 -0700)
commitdf4951e4930b476b01fcfa9a8a113946ae0afb13
tree38b1205e24ec8b89ac7aae56c669f1efd2426132
parentae638b7fecf220fd03ebdf1a04880d51f1b41247
timekeeping: Minor fixup for timespec64->timespec assignment

In the GENERIC_TIME_VSYSCALL_OLD update_vsyscall implementation,
we take the tk_xtime() value, which returns a timespec64, and
store it in a timespec.

This luckily is ok, since the only architectures that use
GENERIC_TIME_VSYSCALL_OLD are ia64 and ppc64, which are both
64 bit systems where timespec64 is the same as a timespec.

Even so, for cleanliness reasons, use the conversion function
to assign the proper type.

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