sparc: Several small VDSO vclock_gettime.c improvements.
authorDavid S. Miller <davem@davemloft.net>
Mon, 22 Oct 2018 05:38:56 +0000 (22:38 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Oct 2018 00:42:10 +0000 (17:42 -0700)
commit19832d244954189c851d8492718607a14734679c
tree8099283c91e9180860d9abd92a60278289cd096d
parentecd4c19f3df7f3687867a2183934efb54a7d3c14
sparc: Several small VDSO vclock_gettime.c improvements.

Almost entirely borrowed from the x86 code.

Main improvement is to avoid having to initialize
ts->tv_nsec to zero before the sequence loops, by
expanding timespec_add_ns().

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/vdso/vclock_gettime.c