pcmcia/i82365: replace schedule_timeout()
Subsystems (2)
PATCH 1/1 pcmcia/i82365: replace schedule_timeout()
I would appreciate any comments from the janitors list.
Applys-to: 2.6.7
Description: Use msleep() instead of schedule_timeout() to guarantee the task delays for the desired time.
Signed-off-by Nishanth Aravamudan <[email protected]>
drivers/pcmcia/i82365.c +1 -2
@@ -514,8 +514,7 @@ static u_int __init test_irq(u_short socif (request_irq (irq, i365_count_irq,0 ,"scan" , i365_count_irq) !=0 )return 1 ; irq_hits =0 ; irq_sock = sock; -__set_current_state (TASK_UNINTERRUPTIBLE ); -schedule_timeout (HZ /100 ); +msleep (10 );if (irq_hits) {free_irq (irq, i365_count_irq);debug (2 ," spurious hit!\n" );
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors