DORMANTno replies

[patch 17/19] net/stir4200: replace direct assignment with set_current_state()

From: <hidden>
Date: 2005-01-11 23:11:00



Any comments would be appreciated.

Description: Use set_current_state() instead of direct assignment of
current->state.

Signed-off-by: Nishanth Aravamudan <redacted>
Signed-off-by: Maximilian Attems <redacted>
Signed-off-by: Domen Puncer <redacted>
---


 kj-domen/drivers/net/irda/stir4200.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/net/irda/stir4200.c~set_current_state-drivers_net_irda_stir4200 drivers/net/irda/stir4200.c
--- kj/drivers/net/irda/stir4200.c~set_current_state-drivers_net_irda_stir4200	2005-01-10 18:00:18.000000000 +0100
+++ kj-domen/drivers/net/irda/stir4200.c	2005-01-10 18:00:18.000000000 +0100
@@ -679,7 +679,7 @@ static void turnaround_delay(const struc
 
 	ticks = us / (1000000 / HZ);
 	if (ticks > 0) {
-		current->state = TASK_INTERRUPTIBLE;
+		set_current_state(TASK_INTERRUPTIBLE);
 		schedule_timeout(1 + ticks);
 	} else
 		udelay(us);
_
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help