Skip to content

Commit 23e9d78

Browse files
lukaszluba-armdlezcano
authored andcommitted
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. 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]
1 parent 615510f commit 23e9d78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/panfrost/panfrost_devfreq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ int panfrost_devfreq_init(struct panfrost_device *pfdev)
143143
}
144144
pfdevfreq->devfreq = devfreq;
145145

146-
cooling = of_devfreq_cooling_register(dev->of_node, devfreq);
146+
cooling = devfreq_cooling_em_register(devfreq, NULL);
147147
if (IS_ERR(cooling))
148148
DRM_DEV_INFO(dev, "Failed to register cooling device\n");
149149
else

0 commit comments

Comments
 (0)