All of lore.kernel.org
 help / color / mirror / Atom feed
* [Kernel-janitors] Re: [PATCH 2.6.9-rc2 4/17] media/cx88-tvaudio:
@ 2004-09-20 21:50 Nishanth Aravamudan
  2004-09-21 18:06 ` maximilian attems
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Nishanth Aravamudan @ 2004-09-20 21:50 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 985 bytes --]

Sorry this should have been 5/17.

On Mon, Sep 20, 2004 at 02:50:02PM -0700, Nishanth Aravamudan wrote:
> Any comments would be appreciated.
> 
> Description: Use msleep_interruptible() instead of schedule_timeout() to
> guarantee the task delays as expected.
> 
> Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
> 
> --- 2.6.9-rc1-mm4-vanilla/drivers/media/video/cx88/cx88-tvaudio.c	2004-09-09 23:05:26.000000000 -0700
> +++ 2.6.9-rc1-mm4/drivers/media/video/cx88/cx88-tvaudio.c	2004-09-13 14:26:23.000000000 -0700
> @@ -49,6 +49,7 @@
>  #include <linux/vmalloc.h>
>  #include <linux/init.h>
>  #include <linux/smp_lock.h>
> +#include <linux/delay.h>
>  
>  #include "cx88.h"
>  
> @@ -785,8 +786,7 @@ int cx88_audio_thread(void *data)
>  	dprintk("cx88: tvaudio thread started\n");
>  
>  	for (;;) {
> -		set_current_state(TASK_INTERRUPTIBLE);
> -		schedule_timeout(HZ*3);
> +		msleep_interruptible(3000);
>  		if (signal_pending(current))
>  			break;
>  		if (dev->shutdown)

[-- Attachment #2: Type: text/plain, Size: 167 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-09-29 17:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-20 21:50 [Kernel-janitors] Re: [PATCH 2.6.9-rc2 4/17] media/cx88-tvaudio: Nishanth Aravamudan
2004-09-21 18:06 ` maximilian attems
2004-09-28  0:32 ` [Kernel-janitors] Re: [PATCH 2.6.9-rc2 4/6] serial/mcfserial: Greg Ungerer
2004-09-28 15:24 ` [Kernel-janitors] Re: [PATCH 2.6.9-rc2 4/9] usb/file_storage: Alan Stern
2004-09-29 17:41 ` [Kernel-janitors] Re: [PATCH 2.6.9-rc2 4/4] pci hotplug/shpchp: Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.