* [KJ] [PATCH]cleaning up current->state in
@ 2007-04-04 4:56 Jestin Stoffel
0 siblings, 0 replies; only message in thread
From: Jestin Stoffel @ 2007-04-04 4:56 UTC (permalink / raw)
To: kernel-janitors
From: Jestin Stoffel <jstnstffl@gmail.com>
Replaced 2 occurances of current->state with set_current_state
Signed-off-by: Jestin Stoffel <jstnstffl@gmail.com>
---
--- linux-2.6.21-rc5/drivers/serial/68328serial.c.orig 2007-04-01 21:26:52.000000000 -0500
+++ linux-2.6.21-rc5/drivers/serial/68328serial.c 2007-04-01 21:27:36.000000000 -0500
@@ -1249,7 +1249,7 @@ static int block_til_ready(struct tty_st
local_irq_disable();
m68k_rtsdtr(info, 1);
local_irq_enable();
- current->state = TASK_INTERRUPTIBLE;
+ set_current_state(TASK_INTERRUPTIBLE);
if (tty_hung_up_p(filp) ||
!(info->flags & S_INITIALIZED)) {
#ifdef SERIAL_DO_RESTART
@@ -1270,7 +1270,7 @@ static int block_til_ready(struct tty_st
}
schedule();
}
- current->state = TASK_INTERRUPTIBLE;
+ set_current_state(TASK_INTERRUPTIBLE);
remove_wait_queue(&info->open_wait, &wait);
if (!tty_hung_up_p(filp))
info->count++;
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-04-04 4:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-04 4:56 [KJ] [PATCH]cleaning up current->state in Jestin Stoffel
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.