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>
This commit is contained in:
Chris Wilson 2014-04-30 18:38:26 +01:00
parent b38b8a59a8
commit bff7ecde7b

View File

@ -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;