sleep_on removal from drivers/net/shaper.c
Subsystems (2)
Hi.
Replaced sleep_on with wait_event.
Comments?
Signed-off-by Domen Puncer <[email protected]>
drivers/net/shaper.c +1 -1
@@ -112,7 +112,7 @@while (test_and_set_bit (0 , &sh->locked)) {if (!in_interrupt ()) -sleep_on (&sh->wait_queue); +wait_event (sh->wait_queue,0 );else return 0 ;
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
[Kernel-janitors] sleep_on removal from tokenring/tms389tr.c
Hi.
Replaced sleep_on_interruptible with wait_event_interruptible. wait_event_interruptible condition is 0, but since it's a define it compiles to nothing.
Compile tested.
Signed-off-by Domen Puncer <[email protected]>
drivers/net/tokenring/tms380tr.c +2 -2
@@ -288,7 +288,7 @@* there will be a timeout from the timer. */ tp->Sleeping =1 ; -interruptible_sleep_on (&tp->wait_for_tok_int); +wait_event_interruptible (tp->wait_for_tok_int,0 );del_timer (&tp->timer);/* If AdapterVirtOpenFlag is 1, the adapter is now open for use */
@@ -1145,7 +1145,7 @@tms380tr_enable_interrupts (dev); tp->Sleeping =1 ; -interruptible_sleep_on (&tp->wait_for_tok_int); +wait_event_interruptible (tp->wait_for_tok_int,0 ); tp->TransmitCommandActive =0 ;del_timer (&tp->timer);
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors