“ceac2651e9b7b77734d1c2b6f5d7d218d22f5427”上不存在“README.md”
提交 bb78e7a1 编写于 作者: M Martin Peres 提交者: Ben Skeggs

drm/nouveau/therm: fix a potential deadlock in the therm monitoring code

Signed-off-by: NMartin Peres <martin.peres@free.fr>
Tested-by: NStefan Ringel <mail@stefanringel.de>
Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
上级 0b4e8e7f
......@@ -192,11 +192,11 @@ alarm_timer_callback(struct nouveau_alarm *alarm)
nouveau_therm_threshold_hyst_polling(therm, &sensor->thrs_shutdown,
NOUVEAU_THERM_THRS_SHUTDOWN);
spin_unlock_irqrestore(&priv->sensor.alarm_program_lock, flags);
/* schedule the next poll in one second */
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);
ptimer->alarm(ptimer, 1000000000ULL, alarm);
}
void
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部