tests: rc6 residency test

This is meant to test the sysfs entry for showing rc6 residency in
milliseconds. Remember, sysfs is a permanent interface.

v2: use new get_card interface to try "all" devices
check rc6p and rc6pp in addition to rc6

v3: rename rc6_residency.c to sysfs_rc6_residency.c
print better error messages
skip test if rc6 isn't enabled

v4: update to new sysfs names

Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Ben Widawsky <benjamin.widawsky@intel.com>
This commit is contained in:
Ben Widawsky
2012-03-24 19:04:10 -07:00
parent 2585bea428
commit f841f4028c
3 changed files with 109 additions and 0 deletions
+1
View File
@@ -35,6 +35,7 @@
#include "xf86drm.h"
#include "intel_batchbuffer.h"
int drm_get_card(int master);
int drm_open_any(void);
int drm_open_any_master(void);