diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2016-07-30 18:48:22 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2016-08-08 11:00:52 +0100 |
commit | 7d16c08ab6cd8de9c13ce5ce13b5d66a6feebca6 (patch) | |
tree | 37fa49d6d551541bff419544a81088e89ab41c9f /drivers/gpu/drm/etnaviv/etnaviv_gpu.h | |
parent | 523d939ef98fd712632d93a5a2b588e477a7565e (diff) |
drm/etnaviv: add etnaviv cooling device
Each Vivante GPU contains a clock divider which can divide the GPU clock
by 2^n, which can lower the power dissipation from the GPU. It has been
suggested that the GC600 on Dove can be responsible for 20-30% of the
power dissipation from the SoC.
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'drivers/gpu/drm/etnaviv/etnaviv_gpu.h')
-rw-r--r-- | drivers/gpu/drm/etnaviv/etnaviv_gpu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gpu.h b/drivers/gpu/drm/etnaviv/etnaviv_gpu.h index f5321e2f25ff..0c7457d834dd 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_gpu.h +++ b/drivers/gpu/drm/etnaviv/etnaviv_gpu.h @@ -96,6 +96,7 @@ struct etnaviv_cmdbuf; struct etnaviv_gpu { struct drm_device *drm; + struct thermal_cooling_device *cooling; struct device *dev; struct mutex lock; struct etnaviv_chip_identity identity; @@ -148,6 +149,7 @@ struct etnaviv_gpu { u32 hangcheck_fence; u32 hangcheck_dma_addr; struct work_struct recover_work; + unsigned int freq_scale; }; struct etnaviv_cmdbuf { |