os_other_arm64.go 367 B

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