summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-04-07 12:07:14 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-04-07 12:07:46 +0100
commit5d607a744f3df07235355ebcb5376e2464e2f4b1 (patch)
tree2da5edac4b54e07c3c8c8ce3f28fced6eeda1315
parent574d62db398af45a8cb1d38fd77dd50bd645149b (diff)
intel-gpu-overlay: Update debugfs path for min/max frequency
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--overlay/gpu-freq.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/overlay/gpu-freq.c b/overlay/gpu-freq.c
index f6bc67a1..6b3f8677 100644
--- a/overlay/gpu-freq.c
+++ b/overlay/gpu-freq.c
@@ -72,8 +72,12 @@ int gpu_freq_init(struct gpu_freq *gf)
gf->fd = perf_open();
- sprintf(buf, "%s/i915_cur_delayinfo", debugfs_dri_path);
+ sprintf(buf, "%s/i915_frequency_info", debugfs_dri_path);
fd = open(buf, 0);
+ if (fd < 0) {
+ sprintf(buf, "%s/i915_cur_delayinfo", debugfs_dri_path);
+ fd = open(buf, 0);
+ }
if (fd < 0)
return gf->error = errno;