mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 02:00:45 +00:00
cpuidle: Add docstrings for properties requiring units
Unit info from comments on `struct cpuidle_state` definition in include/linux/cpuidle.h in Linux 4.9 source (see drivers/cpuidle/sysfs.c for the code that exposes that data to userspace)
This commit is contained in:
parent
7cc8675fa0
commit
c9f7e0e066
@ -61,16 +61,29 @@ class CpuidleState(object):
|
||||
@property
|
||||
@memoized
|
||||
def latency(self):
|
||||
"""Exit latency in uS"""
|
||||
return self.get('latency')
|
||||
|
||||
@property
|
||||
@memoized
|
||||
def power(self):
|
||||
"""Power usage in mW
|
||||
|
||||
..note::
|
||||
|
||||
This value is not always populated by the kernel and may be garbage.
|
||||
"""
|
||||
return self.get('power')
|
||||
|
||||
@property
|
||||
@memoized
|
||||
def target_residency(self):
|
||||
"""Target residency in uS
|
||||
|
||||
This is the amount of time in the state required to 'break even' on
|
||||
power - the system should avoid entering the state for less time than
|
||||
this.
|
||||
"""
|
||||
return self.get('residency')
|
||||
|
||||
def enable(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user