Chris Wilson 5c81cda0ff overlay: Add graph for GPU power consumption
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-20 10:26:23 +01:00

18 lines
253 B
C

#include <stdint.h>
struct power {
struct power_stat {
uint64_t energy;
uint64_t timestamp;
} stat[2];
int error;
int count;
int new_sample;
uint64_t power_mW;
};
int power_init(struct power *power);
int power_update(struct power *power);