]> Cypherpunks repositories - gostls13.git/commit
runtime: use clock_gettime(CLOCK_REALTIME) for nanosecond-precision time.now on arm64...
authorRuss Cox <rsc@golang.org>
Thu, 27 Oct 2016 13:22:43 +0000 (09:22 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 27 Oct 2016 17:53:13 +0000 (17:53 +0000)
commit5594074dcd09d0bb8c35998e20cddf728893ff00
treeb9ecefbc4d8ed561f7ac35e9661c48ff5a99f5c9
parentaff37662d1f70f2bf9e47b4f962e85521e7c18d1
runtime: use clock_gettime(CLOCK_REALTIME) for nanosecond-precision time.now on arm64, mips64x

Assembly copied from the clock_gettime(CLOCK_MONOTONIC)
call in runtime.nanotime in these files and then modified to use
CLOCK_REALTIME.

Also comment system call numbers in a few other files.

Fixes #11222.

Change-Id: Ie132086de7386f865908183aac2713f90fc73e0d
Reviewed-on: https://go-review.googlesource.com/32177
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/runtime/sys_darwin_386.s
src/runtime/sys_darwin_amd64.s
src/runtime/sys_dragonfly_amd64.s
src/runtime/sys_freebsd_386.s
src/runtime/sys_freebsd_amd64.s
src/runtime/sys_linux_arm64.s
src/runtime/sys_linux_mips64x.s