Source file src/runtime/os_linux_loong64.go

     1  // Copyright 2022 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 linux && loong64
     6  
     7  package runtime
     8  
     9  func archauxv(tag, val uintptr) {}
    10  
    11  func osArchInit() {}
    12  
    13  //go:nosplit
    14  func cputicks() int64 {
    15  	// Currently cputicks() is used in blocking profiler and to seed fastrand().
    16  	// nanotime() is a poor approximation of CPU ticks that is enough for the profiler.
    17  	return nanotime()
    18  }
    19  

View as plain text