projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c9d59c
)
drm/lima: Use delayed timer as default in devfreq profile
author
Lukasz Luba
<lukasz.luba@arm.com>
Wed, 27 Jan 2021 10:51:21 +0000
(10:51 +0000)
committer
Qiang Yu
<yuq825@gmail.com>
Sun, 7 Feb 2021 12:54:57 +0000
(20:54 +0800)
Devfreq framework supports 2 modes for monitoring devices.
Use delayed timer as default instead of deferrable timer
in order to monitor the GPU status regardless of CPU idle.
Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20210127105121.20345-1-lukasz.luba@arm.com
drivers/gpu/drm/lima/lima_devfreq.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/lima/lima_devfreq.c
b/drivers/gpu/drm/lima/lima_devfreq.c
index 5686ad4aaf7c11d6ba70c432a787c6599b1d2140..f1c9eb3e71bd42fbe69b05b7e8aa3f6450a620c7 100644
(file)
--- a/
drivers/gpu/drm/lima/lima_devfreq.c
+++ b/
drivers/gpu/drm/lima/lima_devfreq.c
@@
-81,6
+81,7
@@
static int lima_devfreq_get_dev_status(struct device *dev,
}
static struct devfreq_dev_profile lima_devfreq_profile = {
+ .timer = DEVFREQ_TIMER_DELAYED,
.polling_ms = 50, /* ~3 frames */
.target = lima_devfreq_target,
.get_dev_status = lima_devfreq_get_dev_status,