diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-08-20 09:27:34 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-08-20 10:03:47 +0100 |
commit | baa5be07d6652bcd86353d25188505cb0199450a (patch) | |
tree | 1a23d117c291901ea78b5a2db24c56794c59aaad /overlay/rc6.h | |
parent | 912a7d855600aadb937517ec5bab26bfd9b8953d (diff) |
overlay: Add rc6 residency
Not much point at the moment since we use forcewake to continuously
probe the GPU busyness. But that will eventually change to a more
power-efficient in-kernel.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'overlay/rc6.h')
-rw-r--r-- | overlay/rc6.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/overlay/rc6.h b/overlay/rc6.h new file mode 100644 index 00000000..3a166b69 --- /dev/null +++ b/overlay/rc6.h @@ -0,0 +1,21 @@ +#include <stdint.h> + +struct rc6 { + struct rc6_stat { + uint64_t rc6_residency; + uint64_t rc6p_residency; + uint64_t rc6pp_residency; + uint64_t timestamp; + } stat[2]; + + int count; + int error; + + uint8_t rc6; + uint8_t rc6p; + uint8_t rc6pp; + uint8_t rc6_combined; +}; + +int rc6_init(struct rc6 *rc6); +int rc6_update(struct rc6 *rc6); |