drm/lima: Use delayed timer as default in devfreq profile
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
This commit is contained in:
@@ -81,6 +81,7 @@ static int lima_devfreq_get_dev_status(struct device *dev,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static struct devfreq_dev_profile lima_devfreq_profile = {
|
static struct devfreq_dev_profile lima_devfreq_profile = {
|
||||||
|
.timer = DEVFREQ_TIMER_DELAYED,
|
||||||
.polling_ms = 50, /* ~3 frames */
|
.polling_ms = 50, /* ~3 frames */
|
||||||
.target = lima_devfreq_target,
|
.target = lima_devfreq_target,
|
||||||
.get_dev_status = lima_devfreq_get_dev_status,
|
.get_dev_status = lima_devfreq_get_dev_status,
|
||||||
|
|||||||
Reference in New Issue
Block a user