drm/nouveau/clk: Let nvkm_clk_tstate take a temperature value
authorKarol Herbst <karolherbst@gmail.com>
Sun, 17 Jul 2016 07:40:23 +0000 (09:40 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 12 Oct 2016 07:29:22 +0000 (17:29 +1000)
commit61a8b84f1cff6051f51b30ad96417dd948dc72da
tree1ed1d343a2a313a179d269db506184ae8c9bf217
parent761c8f69afdf34c100ccdde1df01163cda4f25e8
drm/nouveau/clk: Let nvkm_clk_tstate take a temperature value

This way other subdevs can notify the clk subdev about temperature changes
without the need of clk to poll that value.

Also make this function safe to be called from an interrupt handler.

Signed-off-by: Karol Herbst <karolherbst@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/include/nvkm/subdev/clk.h
drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c