summaryrefslogtreecommitdiff
path: root/overlay/gpu-freq.c
diff options
context:
space:
mode:
Diffstat (limited to 'overlay/gpu-freq.c')
-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 6b3f8677..08b1bff7 100644
--- a/overlay/gpu-freq.c
+++ b/overlay/gpu-freq.c
@@ -124,8 +124,12 @@ int gpu_freq_update(struct gpu_freq *gf)
char buf[4096], *s;
int fd, len = -1;
- 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;