1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-05 08:17:04 +00:00

source/cpu: disable intel_pstate detection on non-x86 architectures

This commit is contained in:
Yaakov Selkowitz 2019-08-16 14:33:53 -04:00
parent fe4421af65
commit 8d97ad9cad

View file

@ -24,10 +24,9 @@ import (
// Discover returns feature names for p-state related features such as turbo boost.
func turboEnabled() (bool, error) {
// On Arm platform, the frequency boost mechanism is software-based.
// So skip pstate detection on Arm.
switch runtime.GOARCH {
case "arm64":
// On other platforms, the frequency boost mechanism is software-based.
// So skip pstate detection on other architectures.
if runtime.GOARCH != "amd64" && runtime.GOARCH != "386" {
return false, nil
}