Source file src/runtime/os_linux_arm64.go

     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  
     7  package runtime
     8  
     9  import "internal/cpu"
    10  
    11  func archauxv(tag, val uintptr) {
    12  	switch tag {
    13  	case _AT_HWCAP:
    14  		cpu.HWCap = uint(val)
    15  	}
    16  }
    17  
    18  //go:nosplit
    19  func cputicks() int64 {
    20  	// nanotime() is a poor approximation of CPU ticks that is enough for the profiler.
    21  	return nanotime()
    22  }
    23  

View as plain text