Commit:     a96afb3e9428f2e7463344f12dbc85faf08e2e09
Parent:     35d6270b806562b37279d3970fa477aaeb372829
Author:     Robert Hancock <[EMAIL PROTECTED]>
AuthorDate: Sun Jan 7 08:12:19 2007 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Mon Jan 15 16:25:31 2007 -0200

    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 <[EMAIL PROTECTED]>
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
 drivers/media/video/cx88/cx88-tvaudio.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/media/video/cx88/cx88-tvaudio.c 
index 3482e01..2bd84d3 100644
--- a/drivers/media/video/cx88/cx88-tvaudio.c
+++ b/drivers/media/video/cx88/cx88-tvaudio.c
@@ -38,6 +38,7 @@
 #include <linux/module.h>
 #include <linux/moduleparam.h>
 #include <linux/errno.h>
+#include <linux/freezer.h>
 #include <linux/kernel.h>
 #include <linux/slab.h>
 #include <linux/mm.h>
@@ -961,6 +962,7 @@ int cx88_audio_thread(void *data)
                if (kthread_should_stop())
+               try_to_freeze();
                /* just monitor the audio status for now ... */
                memset(&t, 0, sizeof(t));
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to