diff options
author | Martin Peres <martin.peres@labri.fr> | 2013-03-14 19:42:38 -0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2013-03-17 21:15:27 -0400 |
commit | bf55eb843d266ad31696f17cf1f5c237409485cf (patch) | |
tree | c1b435d06e9a75c6fb5a06c5e85fdb11aa8751ea | |
parent | 98ee7c7c63f16e443f51abf08e5412f8eb44ad1e (diff) |
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>
-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 0d94d1a19eb7..2a02c9f1d7ff 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) | |||
193 | NOUVEAU_THERM_THRS_SHUTDOWN); | 193 | NOUVEAU_THERM_THRS_SHUTDOWN); |
194 | 194 | ||
195 | /* schedule the next poll in one second */ | 195 | /* schedule the next poll in one second */ |
196 | if (list_empty(&alarm->head)) | 196 | if (therm->temp_get(therm) >= 0 && list_empty(&alarm->head)) |
197 | ptimer->alarm(ptimer, 1000 * 1000 * 1000, alarm); | 197 | ptimer->alarm(ptimer, 1000 * 1000 * 1000, alarm); |
198 | 198 | ||
199 | spin_unlock_irqrestore(&priv->sensor.alarm_program_lock, flags); | 199 | spin_unlock_irqrestore(&priv->sensor.alarm_program_lock, flags); |