summaryrefslogtreecommitdiff
path: root/overlay/gpu-freq.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-08-23 15:59:06 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-08-23 16:00:16 +0100
commitb22e90bc8b9c7fe27556558c31f00e35e689a12e (patch)
treeab3844b5012a310fe4a4c6bfedcc17f564438489 /overlay/gpu-freq.c
parent9574cb1a3de0dfe45c59420e2cb9a74fc23baecc (diff)
overlay: Distinguish the root debugfs path and our dri node
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'overlay/gpu-freq.c')
-rw-r--r--overlay/gpu-freq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/overlay/gpu-freq.c b/overlay/gpu-freq.c
index b34f66f2..0a400be6 100644
--- a/overlay/gpu-freq.c
+++ b/overlay/gpu-freq.c
@@ -38,7 +38,7 @@ int gpu_freq_init(struct gpu_freq *gf)
memset(gf, 0, sizeof(*gf));
- sprintf(buf, "%s/i915_cur_delayinfo", debugfs_path);
+ sprintf(buf, "%s/i915_cur_delayinfo", debugfs_dri_path);
fd = open(buf, 0);
if (fd < 0)
return gf->error = errno;
@@ -85,7 +85,7 @@ int gpu_freq_update(struct gpu_freq *gf)
if (gf->error)
return gf->error;
- sprintf(buf, "%s/i915_cur_delayinfo", debugfs_path);
+ sprintf(buf, "%s/i915_cur_delayinfo", debugfs_dri_path);
fd = open(buf, 0);
if (fd < 0)
return gf->error = errno;