Skip to contentSkip to conversation

cleaning up current->state in

PATCH New Jestin Stoffel 1 participant 1 message Apr 4, 2007 Kernel janitors

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cleaning up current->state in

From: Jestin Stoffel <[email protected]>

Replaced 2 occurances of current->state with set_current_state

---

drivers/serial/68328serial.c renamed from drivers/serial/68328serial.c.orig +2 -2
@@ -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
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/kernel-janitors