diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/ctrl_gk20a.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/ctrl_gk20a.c b/drivers/gpu/nvgpu/gk20a/ctrl_gk20a.c index 23fbdce0..6768dbeb 100644 --- a/drivers/gpu/nvgpu/gk20a/ctrl_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/ctrl_gk20a.c | |||
@@ -1278,9 +1278,7 @@ static int nvgpu_gpu_get_temperature(struct gk20a *g, | |||
1278 | 1278 | ||
1279 | gk20a_idle(g->dev); | 1279 | gk20a_idle(g->dev); |
1280 | 1280 | ||
1281 | /* Convert from standard S24.8 fixed point to mC */ | 1281 | args->temp_f24_8 = (s32)temp_f24_8; |
1282 | if (!err) | ||
1283 | args->temperature = (temp_f24_8 * 1000) / 256; | ||
1284 | 1282 | ||
1285 | return err; | 1283 | return err; |
1286 | } | 1284 | } |