mirror of
https://github.com/ARM-software/devlib.git
synced 2025-03-04 01:07: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:
parent
a35f715b63
commit
0d63386343
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user