os_other_arm64.go (367B)
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 cpuid 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 }