Skip to contentSkip to conversation

set_current_state cleanup in drivers/serial/mcfserial.c

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 set_current_state cleanup in drivers/serial/mcfserial.c

From: Jestin Stoffel <[email protected]>

Replaced a couple current->state= with set_current_state

---

drivers/serial/mcfserial.c renamed from drivers/serial/mcfserial.c.orig +2 -2
@@ -1399,7 +1399,7 @@ static int block_til_ready(struct tty_st
 		local_irq_disable();
 		mcfrs_setsignals(info, 1, 1);
 		local_irq_enable();
-		current->state = TASK_INTERRUPTIBLE;
+		set_current_state(TASK_INTERRUPTIBLE);
 		if (tty_hung_up_p(filp) ||
 		    !(info->flags & ASYNC_INITIALIZED)) {
 #ifdef SERIAL_DO_RESTART
@@ -1425,7 +1425,7 @@ static int block_til_ready(struct tty_st
 #endif
 		schedule();
 	}
-	current->state = TASK_RUNNING;
+	set_current_state(TASK_RUNNING);
 	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