1
0
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:
Brendan Jackman 2016-12-06 11:46:16 +00:00
parent 68f7585ac2
commit 7cc8675fa0

View File

@ -68,6 +68,11 @@ class CpuidleState(object):
def power(self): def power(self):
return self.get('power') return self.get('power')
@property
@memoized
def target_residency(self):
return self.get('residency')
def enable(self): def enable(self):
self.set('disable', 0) self.set('disable', 0)