Commit 904beebb authored by Lukasz Luba's avatar Lukasz Luba Committed by Qiang Yu

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: default avatarLukasz Luba <lukasz.luba@arm.com>
Signed-off-by: default avatarQiang Yu <yuq825@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210127105121.20345-1-lukasz.luba@arm.com
parent 0c9d59c3
...@@ -81,6 +81,7 @@ static int lima_devfreq_get_dev_status(struct device *dev, ...@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment