github.com/comwrg/go/src@v0.0.0-20220319063731-c238d0440370/runtime/os_linux_arm64.go (about) 1 // Copyright 2015 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 //go:build arm64 6 // +build arm64 7 8 package runtime 9 10 import "internal/cpu" 11 12 func archauxv(tag, val uintptr) { 13 switch tag { 14 case _AT_HWCAP: 15 cpu.HWCap = uint(val) 16 } 17 } 18 19 func osArchInit() {} 20 21 //go:nosplit 22 func cputicks() int64 { 23 // Currently cputicks() is used in blocking profiler and to seed fastrand(). 24 // nanotime() is a poor approximation of CPU ticks that is enough for the profiler. 25 return nanotime() 26 }