projects
/
platform
/
upstream
/
intel-gpu-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b38b8a5
)
overlay: Use new i915_frequency_info in fallback code
author
Chris Wilson
<chris@chris-wilson.co.uk>
Wed, 30 Apr 2014 17:38:26 +0000
(18:38 +0100)
committer
Chris Wilson
<chris@chris-wilson.co.uk>
Wed, 30 Apr 2014 17:44:48 +0000
(18:44 +0100)
Actually use the new location to get frequency information when perf is
not available.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
overlay/gpu-freq.c
patch
|
blob
|
history
diff --git
a/overlay/gpu-freq.c
b/overlay/gpu-freq.c
index
6b3f867
..
08b1bff
100644
(file)
--- 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_delay
info", 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;