From: Robert Hancock Date: Sun, 7 Jan 2007 11:12:19 +0000 (-0300) Subject: V4L/DVB (5021): Cx88xx: Fix lockup on suspend X-Git-Tag: MMI-PSA29.97-13-9~45528^2~6 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a96afb3e9428f2e7463344f12dbc85faf08e2e09;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git V4L/DVB (5021): Cx88xx: Fix lockup on suspend Suspending with the cx88xx module loaded causes the system to lock up because the cx88_audio_thread kthread was missing a try_to_freeze() call, which caused it to go into a tight loop and result in softlockup when suspending. Fix that. Signed-off-by: Robert Hancock Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/cx88/cx88-tvaudio.c b/drivers/media/video/cx88/cx88-tvaudio.c index 3482e0114d43..2bd84d351a18 100644 --- a/drivers/media/video/cx88/cx88-tvaudio.c +++ b/drivers/media/video/cx88/cx88-tvaudio.c @@ -38,6 +38,7 @@ #include #include #include +#include #include #include #include @@ -961,6 +962,7 @@ int cx88_audio_thread(void *data) msleep_interruptible(1000); if (kthread_should_stop()) break; + try_to_freeze(); /* just monitor the audio status for now ... */ memset(&t, 0, sizeof(t));