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:
parent
fe4421af65
commit
8d97ad9cad
1 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue