From b19d76d4b065408f4bd6a8d7c197f64f581168ef Mon Sep 17 00:00:00 2001 From: Patrick Bellasi Date: Tue, 15 Sep 2015 10:25:15 +0100 Subject: [PATCH] cpufreq: fix probe method to support Intel machine Recent Intel machines uses the CPUFreq pstate driver, which does not create the standard "/sys/devices/system/cpu/cpufreq" folder usually created by other (mostly ARM platform) drivers. This patch fixes the probe method to check for the propert pstate driver being available in order to enabled the CPUFreq module. Signed-off-by: Patrick Bellasi --- devlib/module/cpufreq.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/devlib/module/cpufreq.py b/devlib/module/cpufreq.py index 2c7dc36..9aeebe8 100644 --- a/devlib/module/cpufreq.py +++ b/devlib/module/cpufreq.py @@ -30,6 +30,8 @@ class CpufreqModule(Module): @staticmethod def probe(target): path = '/sys/devices/system/cpu/cpufreq' + if target.abi == 'x86_64': + path = '/sys/devices/system/cpu/intel_pstate' return target.file_exists(path) def __init__(self, target):