drm/panfrost: Use delayed timer as default in devfreq profile
authorLukasz Luba <lukasz.luba@arm.com>
Tue, 5 Jan 2021 16:41:11 +0000 (16:41 +0000)
committerSteven Price <steven.price@arm.com>
Wed, 13 Jan 2021 15:38:27 +0000 (15:38 +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: Steven Price <steven.price@arm.com>
Signed-off-by: Steven Price <steven.price@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210105164111.30122-1-lukasz.luba@arm.com
drivers/gpu/drm/panfrost/panfrost_devfreq.c

index f44d28f..56b3f59 100644 (file)
@@ -76,6 +76,7 @@ static int panfrost_devfreq_get_dev_status(struct device *dev,
 }
 
 static struct devfreq_dev_profile panfrost_devfreq_profile = {
+       .timer = DEVFREQ_TIMER_DELAYED,
        .polling_ms = 50, /* ~3 frames */
        .target = panfrost_devfreq_target,
        .get_dev_status = panfrost_devfreq_get_dev_status,