]> Git Repo - linux.git/commitdiff
drm/panfrost: Register devfreq cooling and attempt to add Energy Model
authorLukasz Luba <[email protected]>
Thu, 10 Dec 2020 14:30:14 +0000 (14:30 +0000)
committerDaniel Lezcano <[email protected]>
Fri, 11 Dec 2020 13:10:44 +0000 (14:10 +0100)
Register devfreq cooling device and attempt to register Energy Model. This
will add the devfreq device to the Energy Model framework. It will create
a dedicated and unified data structures used i.e. in thermal framework.
It uses simplified Energy Model, created based on voltage, frequency
and DT 'dynamic-power-coefficient'.

Reviewed-by: Steven Price <[email protected]>
Reviewed-by: Alyssa Rosenzweig <[email protected]>
Signed-off-by: Lukasz Luba <[email protected]>
Signed-off-by: Daniel Lezcano <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
drivers/gpu/drm/panfrost/panfrost_devfreq.c

index 8ab025d0035f37403e4cbb1b8c4f1c130aefb8ff..0d97176c9fb5bc60f399e362099fbf94d59e2201 100644 (file)
@@ -143,7 +143,7 @@ int panfrost_devfreq_init(struct panfrost_device *pfdev)
        }
        pfdevfreq->devfreq = devfreq;
 
-       cooling = of_devfreq_cooling_register(dev->of_node, devfreq);
+       cooling = devfreq_cooling_em_register(devfreq, NULL);
        if (IS_ERR(cooling))
                DRM_DEV_INFO(dev, "Failed to register cooling device\n");
        else
This page took 0.057694 seconds and 4 git commands to generate.