netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch 17/19] net/stir4200: replace direct assignment with set_current_state()
@ 2005-01-11 23:11 domen
  0 siblings, 0 replies; only message in thread
From: domen @ 2005-01-11 23:11 UTC (permalink / raw)
  To: jgarzik; +Cc: netdev, domen, nacc, janitor




Any comments would be appreciated.

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

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Domen Puncer <domen@coderock.org>
---


 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);
_

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-01-11 23:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-11 23:11 [patch 17/19] net/stir4200: replace direct assignment with set_current_state() domen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).