Skip to content

Commit

Permalink
drm/lima: Use delayed timer as default in devfreq profile
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Lukasz Luba authored and Qiang Yu committed Feb 7, 2021
1 parent 0c9d59c commit 904beeb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/lima/lima_devfreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 904beeb

Please sign in to comment.