Chris Wilson baa5be07d6 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>
2013-08-20 10:03:47 +01:00

22 lines
330 B
C

#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);