Skip to contentSkip to conversation

net/tms380tr: replace

PATCH New Nishanth Aravamudan 1 participant 1 message Sep 24, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 35/38 net/tms380tr: replace

Any comments would be appreciated.

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

drivers/net/tokenring/tms380tr.c +1 -1
@@ -1244,7 +1244,7 @@ void tms380tr_wait(unsigned long time)
 	
 	tmp = jiffies + time/(1000000/HZ);
 	do {
-  		current->state 		= TASK_INTERRUPTIBLE;
+		set_current_state(TASK_INTERRUPTIBLE);
 		tmp = schedule_timeout(tmp);
 	} while(time_after(tmp, jiffies));
 #else

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors