1
0
mirror of https://github.com/ARM-software/devlib.git synced 2024-10-06 02:40:50 +01:00

module/cpuidle: Fix incorrect path check

This commit is contained in:
Marc Bonnici 2020-06-10 18:09:25 +01:00
parent 45ee68fdd4
commit 20d1eabaf0

View File

@ -172,6 +172,6 @@ class Cpuidle(Module):
def get_governor(self):
path = self.target.path.join(self.root_path, 'current_governor_ro')
if not self.target.path.exists(path):
if not self.target.file_exists(path):
path = self.target.path.join(self.root_path, 'current_governor')
return self.target.read_value(path)