mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-22 15:26:21 +00:00
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:
parent
b38b8a59a8
commit
bff7ecde7b
@ -124,8 +124,12 @@ int gpu_freq_update(struct gpu_freq *gf)
|
|||||||
char buf[4096], *s;
|
char buf[4096], *s;
|
||||||
int fd, len = -1;
|
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);
|
fd = open(buf, 0);
|
||||||
|
if (fd < 0) {
|
||||||
|
sprintf(buf, "%s/i915_cur_delayinfo", debugfs_dri_path);
|
||||||
|
fd = open(buf, 0);
|
||||||
|
}
|
||||||
if (fd < 0)
|
if (fd < 0)
|
||||||
return gf->error = errno;
|
return gf->error = errno;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user