diff options
author | Joel Sing <jsing@google.com> | 2015-02-16 02:03:53 +1100 |
---|---|---|
committer | Joel Sing <jsing@google.com> | 2015-03-15 04:06:26 +0000 |
commit | be3133bfda9c71b70d7494588c01a86e437ea920 (patch) | |
tree | 2c04d541c6015bd2f6acd06c96c941398e37eb36 /src/runtime/os_openbsd_arm.go | |
parent | 3e981d9830215632d2a34e68273cb4452b9e6ffc (diff) | |
download | go-be3133bfda9c71b70d7494588c01a86e437ea920.tar.gz go-be3133bfda9c71b70d7494588c01a86e437ea920.zip |
runtime: add support for openbsd/arm
Change-Id: I2bc101aa19172e705ee4de5f3c73a8b4bbf4fa6f
Reviewed-on: https://go-review.googlesource.com/4912
Reviewed-by: Minux Ma <minux@golang.org>
Diffstat (limited to 'src/runtime/os_openbsd_arm.go')
-rw-r--r-- | src/runtime/os_openbsd_arm.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/runtime/os_openbsd_arm.go b/src/runtime/os_openbsd_arm.go new file mode 100644 index 0000000000..be3f330dfb --- /dev/null +++ b/src/runtime/os_openbsd_arm.go @@ -0,0 +1,17 @@ +// Copyright 2013 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package runtime + +func checkgoarm() { + // TODO(minux) +} + +//go:nosplit +func cputicks() int64 { + // Currently cputicks() is used in blocking profiler and to seed runtime·fastrand1(). + // runtime·nanotime() is a poor approximation of CPU ticks that is enough for the profiler. + // TODO: need more entropy to better seed fastrand1. + return nanotime() +} |