From bff7ecde7bf3757e11ab4559212564e3f4919b89 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 30 Apr 2014 18:38:26 +0100 Subject: [PATCH] overlay: Use new i915_frequency_info in fallback code Actually use the new location to get frequency information when perf is not available. Signed-off-by: Chris Wilson --- overlay/gpu-freq.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/overlay/gpu-freq.c b/overlay/gpu-freq.c index 6b3f867..08b1bff 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; -- 2.7.4