mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 02:00:45 +00:00
cpuidle: Add getter for target residency
This commit is contained in:
parent
68f7585ac2
commit
7cc8675fa0
@ -68,6 +68,11 @@ class CpuidleState(object):
|
||||
def power(self):
|
||||
return self.get('power')
|
||||
|
||||
@property
|
||||
@memoized
|
||||
def target_residency(self):
|
||||
return self.get('residency')
|
||||
|
||||
def enable(self):
|
||||
self.set('disable', 0)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user