Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bf55eb84 authored by Martin Peres's avatar Martin Peres Committed by Ben Skeggs
Browse files

drm/nouveau/therm: disable temperature management if the sensor isn't readable

parent 98ee7c7c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);