diff --git a/devlib/module/cpufreq.py b/devlib/module/cpufreq.py index 9aeebe8..a41cff2 100644 --- a/devlib/module/cpufreq.py +++ b/devlib/module/cpufreq.py @@ -29,9 +29,20 @@ class CpufreqModule(Module): @staticmethod def probe(target): - path = '/sys/devices/system/cpu/cpufreq' + + # x86 with Intel P-State driver if target.abi == 'x86_64': path = '/sys/devices/system/cpu/intel_pstate' + if target.file_exists(path): + return True + + # Generic CPUFreq support (single policy) + path = '/sys/devices/system/cpu/cpufreq' + if target.file_exists(path): + return True + + # Generic CPUFreq support (per CPU policy) + path = '/sys/devices/system/cpu/cpu0/cpufreq' return target.file_exists(path) def __init__(self, target):