mirror of
https://github.com/armbian/build.git
synced 2025-08-10 21:26:59 +02:00
25 lines
860 B
Diff
25 lines
860 B
Diff
From: Lukasz Luba <lukasz.luba@arm.com>
|
|
Subject: [PATCH] drm/lima: Use delayed timer as default in devfreq profile
|
|
Date: Wed, 27 Jan 2021 10:51:21 +0000
|
|
|
|
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>
|
|
Reviewed-by: Qiang Yu <yuq825@gmail.com>
|
|
---
|
|
drivers/gpu/drm/lima/lima_devfreq.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
--- a/drivers/gpu/drm/lima/lima_devfreq.c
|
|
+++ b/drivers/gpu/drm/lima/lima_devfreq.c
|
|
@@ -86,6 +86,7 @@ static int lima_devfreq_get_dev_status(s
|
|
}
|
|
|
|
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,
|