1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-03-04 09:17:51 +00:00

module/cpufreq: include policy0 in probe path

Check /sys/devices/system/cpu/cpufreq/policy0 rather than its parent
during the probe. This is to handle the edge case where cpufreq has
been enabled in the kernel, but no frequency domains have been defined
(in which case, the module should not install).
This commit is contained in:
Sergei Trofimov 2018-06-06 15:25:42 +01:00 committed by Marc Bonnici
parent a35f715b63
commit 0d63386343

View File

@ -37,7 +37,7 @@ class CpufreqModule(Module):
return True
# Generic CPUFreq support (single policy)
path = '/sys/devices/system/cpu/cpufreq'
path = '/sys/devices/system/cpu/cpufreq/policy0'
if target.file_exists(path):
return True