mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-31 10:11:17 +00:00
cpufreq: refined availability check not to rely on the top-level cpu/cpufreq directory
This commit is contained in:
parent
c9f86b05dd
commit
d5f4457701
@ -29,7 +29,7 @@ class CpufreqModule(Module):
|
||||
capabilities = ['cpufreq']
|
||||
|
||||
def probe(self, device): # pylint: disable=no-self-use
|
||||
path = '/sys/devices/system/cpu/cpufreq'
|
||||
path = '/sys/devices/system/cpu/cpu{}/cpufreq'.format(device.online_cpus[0])
|
||||
return device.file_exists(path)
|
||||
|
||||
def initialize(self, context):
|
||||
|
Loading…
x
Reference in New Issue
Block a user