diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-04-30 18:38:26 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-04-30 18:44:48 +0100 |
commit | bff7ecde7bf3757e11ab4559212564e3f4919b89 (patch) | |
tree | 38e1e9b921c99e09c07432dfcbccddc34d5a13e5 | |
parent | b38b8a59a8694ef2d2d4c78283c7c697367766d7 (diff) |
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 <chris@chris-wilson.co.uk>
-rw-r--r-- | overlay/gpu-freq.c | 6 |
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; |