1// Copyright 2019 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 5package runtime 6 7import ( 8 "internal/cpu" 9) 10 11//go:nosplit 12func cputicks() int64 { 13 // Currently cputicks() is used in blocking profiler and to seed runtime·fastrand(). 14 // runtime·nanotime() is a poor approximation of CPU ticks that is enough for the profiler. 15 return nanotime() 16} 17 18func sysargs(argc int32, argv **byte) { 19 // OpenBSD does not have auxv, however we still need to initialise cpu.HWCaps. 20 // For now specify the bare minimum until we add some form of capabilities 21 // detection. See issue #31746. 22 cpu.HWCap = 1<<1 | 1<<0 // ASIMD, FP 23} 24