Commit fe1daee7 authored by Lukasz Luba's avatar Lukasz Luba Committed by Ionela Voinescu
Browse files

drm/panfrost: Register devfreq cooling and attempt to add Energy Model

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.
The last NULL parameter indicates that the power model is simplified and
created based on DT 'dynamic-power-coefficient', voltage and frequency.
Signed-off-by: Lukasz Luba's avatarLukasz Luba <>
Reviewed-by: Steven Price's avatarSteven Price <>
Reviewed-by: default avatarAlyssa Rosenzweig <>
parent ffd023ec
......@@ -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");
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