summaryrefslogtreecommitdiff
path: root/tests/pm_rpm.c
diff options
context:
space:
mode:
authorThomas Wood <thomas.wood@intel.com>2014-11-03 13:48:51 +0000
committerThomas Wood <thomas.wood@intel.com>2014-11-06 13:25:03 +0000
commitc049c39f357295ecfc4d0795b5b3b1e35b04ac58 (patch)
treeb67e1b8b4f7208c76e0f8adc7f6e6df00457fef2 /tests/pm_rpm.c
parent4f689d52e7e6a511fb0de21ccc0b938d57ce6f41 (diff)
tests: use igt_debugfs where possible
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Diffstat (limited to 'tests/pm_rpm.c')
-rw-r--r--tests/pm_rpm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/pm_rpm.c b/tests/pm_rpm.c
index d31726d1..1e65c04e 100644
--- a/tests/pm_rpm.c
+++ b/tests/pm_rpm.c
@@ -663,8 +663,7 @@ static void setup_pc8(void)
if (!supports_pc8_plus_residencies())
return;
- pc8_status_fd = open("/sys/kernel/debug/dri/0/i915_pc8_status",
- O_RDONLY);
+ pc8_status_fd = igt_debugfs_open("i915_pc8_status", O_RDONLY);
igt_assert_f(pc8_status_fd >= 0,
"Can't open /sys/kernel/debug/dri/0/i915_pc8_status");