From: Martin Peres Date: Thu, 13 Mar 2014 23:26:52 +0000 (+0100) Subject: drm/nouveau/pm/fan: drop the fan lock in fan_update() before rescheduling X-Git-Tag: v3.15-rc1~51^2~39^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61679fe153b2b9ea5b5e2ab93305419e85e99a9d;p=pandora-kernel.git drm/nouveau/pm/fan: drop the fan lock in fan_update() before rescheduling This should fix a deadlock that has been reported to us where fan_update() would hold the fan lock and try to grab the alarm_program_lock to reschedule an update. On an other CPU, the alarm_program_lock would have been taken before calling fan_update(), leading to a deadlock. We should Cc: # 3.9+ Reported-by: Marcin Slusarz Tested-by: Timothée Ravier Tested-by: Boris Fersing (IRC nick fersingb, no public email address) Signed-off-by: Martin Peres Signed-off-by: Ben Skeggs --- Reading git-diff-tree failed