File: os_other_arm64.go

package info (click to toggle)
golang-github-klauspost-cpuid 2.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid
  • size: 1,280 kB
  • sloc: asm: 117; sh: 12; makefile: 3
file content (16 lines) | stat: -rw-r--r-- 367 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright (c) 2020 Klaus Post, released under MIT License. See LICENSE file.

//go:build arm64 && !linux && !darwin
// +build arm64,!linux,!darwin

package cpuid

import "runtime"

func detectOS(c *CPUInfo) bool {
	c.PhysicalCores = runtime.NumCPU()
	// For now assuming 1 thread per core...
	c.ThreadsPerCore = 1
	c.LogicalCores = c.PhysicalCores
	return false
}