drm/panfrost: Register devfreq cooling device
authorRobin Murphy <robin.murphy@arm.com>
Thu, 28 Nov 2019 20:54:27 +0000 (20:54 +0000)
committerRob Herring <robh@kernel.org>
Fri, 6 Dec 2019 17:11:59 +0000 (11:11 -0600)
commitbc1152b086c1a99971ef3d351c9e1fd5814a6e46
treea61c8a2ed9df9dcb40da77faaf8133b647b8ccf8
parent1ca3fd96f958291daa50693b4a50cd3df4b411f1
drm/panfrost: Register devfreq cooling device

When we have devfreq, also try to register a basic cooling device in
case GPU workloads manage to hit thermal throttling thresholds.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/21f228099321f460d62e0ab7c77b2d2213dd4da8.1574974319.git.robin.murphy@arm.com
drivers/gpu/drm/panfrost/panfrost_devfreq.c