git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b4e8e7
)
drm/nouveau/therm: fix a potential deadlock in the therm monitoring code
author
Martin Peres
<martin.peres@free.fr>
Mon, 14 Jul 2014 09:12:56 +0000
(11:12 +0200)
committer
Ben Skeggs
<bskeggs@redhat.com>
Tue, 15 Jul 2014 02:33:00 +0000
(12:33 +1000)
Signed-off-by: Martin Peres <martin.peres@free.fr>
Tested-by: Stefan Ringel <mail@stefanringel.de>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/subdev/therm/temp.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/core/subdev/therm/temp.c
b/drivers/gpu/drm/nouveau/core/subdev/therm/temp.c
index
cfde9eb
..
6212537
100644
(file)
--- a/
drivers/gpu/drm/nouveau/core/subdev/therm/temp.c
+++ b/
drivers/gpu/drm/nouveau/core/subdev/therm/temp.c
@@
-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