mirror of
https://github.com/ARM-software/devlib.git
synced 2025-09-02 01:51:53 +01:00
module/cpuidle: Fix incorrect path check
This commit is contained in:
@@ -172,6 +172,6 @@ class Cpuidle(Module):
|
|||||||
|
|
||||||
def get_governor(self):
|
def get_governor(self):
|
||||||
path = self.target.path.join(self.root_path, 'current_governor_ro')
|
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')
|
path = self.target.path.join(self.root_path, 'current_governor')
|
||||||
return self.target.read_value(path)
|
return self.target.read_value(path)
|
||||||
|
Reference in New Issue
Block a user