diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-01-07 09:12:19 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-01-07 09:12:19 -0200 |
commit | ce2499abcaca7d43e271cb649870d9e39c99dd9a (patch) | |
tree | 172d24eb7b42b9656f17268c70b66fbe5e70fe85 /linux/drivers/media/video/cx88/cx88-tvaudio.c | |
parent | c505790256a9a45a90fb482dfd5f01ce0446e81a (diff) | |
download | mediapointer-dvb-s2-ce2499abcaca7d43e271cb649870d9e39c99dd9a.tar.gz mediapointer-dvb-s2-ce2499abcaca7d43e271cb649870d9e39c99dd9a.tar.bz2 |
Cx88xx: Fix lockup on suspend
From: Robert Hancock <hancockr@shaw.ca>
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 <hancockr@shaw.ca>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/cx88/cx88-tvaudio.c')
-rw-r--r-- | linux/drivers/media/video/cx88/cx88-tvaudio.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-tvaudio.c b/linux/drivers/media/video/cx88/cx88-tvaudio.c index 4f2b52012..86f273778 100644 --- a/linux/drivers/media/video/cx88/cx88-tvaudio.c +++ b/linux/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> @@ -964,6 +965,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)); |