tile: add clock_gettime support to vDSO
authorChris Metcalf <cmetcalf@tilera.com>
Thu, 2 Oct 2014 14:32:15 +0000 (10:32 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Thu, 2 Oct 2014 17:56:07 +0000 (13:56 -0400)
commit78410af51146796f783925009c8676a30d6c6d90
tree9d1acdab6ef79c6ce121c7ea7cd5c90d25d52c2d
parent94fb1afbcb3e1f8666c9065baded2cb66e72126f
tile: add clock_gettime support to vDSO

This change adds support for clock_gettime with CLOCK_REALTIME
and CLOCK_MONOTONIC using vDSO.  It also updates the vdso
struct nomenclature used for the clocks to match the x86 code
to keep it easier to update going forward.

We also support the *_COARSE clockid_t, for apps that want speed
but aren't concerned about fine-grained timestamps; this saves
about 20 cycles per call (see http://lwn.net/Articles/342018/).

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Acked-by: John Stultz <john.stultz@linaro.org>
arch/tile/include/asm/vdso.h
arch/tile/kernel/time.c
arch/tile/kernel/vdso/vdso.lds.S
arch/tile/kernel/vdso/vgettimeofday.c