git.sr.ht/~pingoo/stdx@v0.0.0-20240218134121-094174641f6e/cpuinfo/os_other_arm64.go (about)

     1  // Copyright (c) 2020 Klaus Post, released under MIT License. See LICENSE file.
     2  
     3  //go:build arm64 && !linux && !darwin
     4  // +build arm64,!linux,!darwin
     5  
     6  package cpuinfo
     7  
     8  import "runtime"
     9  
    10  func detectOS(c *CPUInfo) bool {
    11  	c.PhysicalCores = runtime.NumCPU()
    12  	// For now assuming 1 thread per core...
    13  	c.ThreadsPerCore = 1
    14  	c.LogicalCores = c.PhysicalCores
    15  	return false
    16  }