1
0
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:
Sergei Trofimov 2015-09-08 17:41:25 +01:00
parent c9f86b05dd
commit d5f4457701

View File

@ -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):