diff options
author | Martin Peres <martin.peres@labri.fr> | 2013-03-14 23:42:38 (GMT) |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2013-03-18 01:15:27 (GMT) |
commit | bf55eb843d266ad31696f17cf1f5c237409485cf (patch) | |
tree | c1b435d06e9a75c6fb5a06c5e85fdb11aa8751ea /drivers/gpu/drm/nouveau/core/subdev | |
parent | 98ee7c7c63f16e443f51abf08e5412f8eb44ad1e (diff) | |
download | linux-fsl-qoriq-bf55eb843d266ad31696f17cf1f5c237409485cf.tar.xz |
drm/nouveau/therm: disable temperature management if the sensor isn't readable
Signed-off-by: Martin Peres <martin.peres@labri.fr>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/core/subdev')
-rw-r--r-- | drivers/gpu/drm/nouveau/core/subdev/therm/temp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/core/subdev/therm/temp.c b/drivers/gpu/drm/nouveau/core/subdev/therm/temp.c index 0d94d1a..2a02c9f 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/therm/temp.c +++ b/drivers/gpu/drm/nouveau/core/subdev/therm/temp.c @@ -193,7 +193,7 @@ alarm_timer_callback(struct nouveau_alarm *alarm) NOUVEAU_THERM_THRS_SHUTDOWN); /* schedule the next poll in one second */ - if (list_empty(&alarm->head)) + if (therm->temp_get(therm) >= 0 && list_empty(&alarm->head)) ptimer->alarm(ptimer, 1000 * 1000 * 1000, alarm); spin_unlock_irqrestore(&priv->sensor.alarm_program_lock, flags); |