summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/msm/msm_gpu.h
diff options
context:
space:
mode:
authorAkhil P Oommen <akhilpo@codeaurora.org>2020-10-30 16:17:10 +0530
committerRob Clark <robdclark@chromium.org>2020-11-05 08:39:57 -0800
commitec793cf01d1fe7f2d3eef30a0accfb3ca880abe4 (patch)
tree9018762dbbc3e3934107e513063bd2ee27deed45 /drivers/gpu/drm/msm/msm_gpu.h
parentcf11c1f89d5209d20cdf4040f5b26253014026ad (diff)
downloadlwn-ec793cf01d1fe7f2d3eef30a0accfb3ca880abe4.tar.gz
lwn-ec793cf01d1fe7f2d3eef30a0accfb3ca880abe4.zip
drm/msm: Add support for GPU cooling
Register GPU as a devfreq cooling device so that it can be passively cooled by the thermal framework. Signed-off-by: Akhil P Oommen <akhilpo@codeaurora.org> Tested-by: Matthias Kaehlcke <mka@chromium.org> Signed-off-by: Rob Clark <robdclark@chromium.org>
Diffstat (limited to 'drivers/gpu/drm/msm/msm_gpu.h')
-rw-r--r--drivers/gpu/drm/msm/msm_gpu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/msm_gpu.h b/drivers/gpu/drm/msm/msm_gpu.h
index 09938ae114ec..786cfc285be0 100644
--- a/drivers/gpu/drm/msm/msm_gpu.h
+++ b/drivers/gpu/drm/msm/msm_gpu.h
@@ -155,6 +155,8 @@ struct msm_gpu {
struct msm_gpu_state *crashstate;
/* True if the hardware supports expanded apriv (a650 and newer) */
bool hw_apriv;
+
+ struct thermal_cooling_device *cooling;
};
static inline struct msm_gpu *dev_to_gpu(struct device *dev)