Skip to contentSkip to conversation

set_current_state cleanup in

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 set_current_state cleanup in

From: Jestin Stoffel <[email protected]>

Replaced a couple current->state= with set_current_state

---

drivers/serial/68360serial.c renamed from drivers/serial/68360serial.c.orig +2 -2
@@ -1750,7 +1750,7 @@ static void rs_360_wait_until_sent(struc
 		else
 			bdp--;
 	} while (bdp->status & BD_SC_READY);
-	current->state = TASK_RUNNING;
+	set_current_state(TASK_RUNNING);
 #ifdef SERIAL_DEBUG_RS_WAIT_UNTIL_SENT
 	printk("lsr = %d (jiff=%lu)...done\n", lsr, jiffies);
 #endif
@@ -1880,7 +1880,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))
 		state->count++;

_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/kernel-janitors

#1 lore raw

PATCH 1/1 set_current_state cleanup in

From: Jestin Stoffel <[email protected]>

Replaced current->state= with set_current_state

---

drivers/serial/serial_core.c renamed from drivers/serial/serial_core.c.orig +1 -1
@@ -1013,7 +1013,7 @@ uart_wait_modem_status(struct uart_state
 		cprev = cnow;
 	}
 
-	current->state = TASK_RUNNING;
+	set_current_state(TASK_RUNNING);
 	remove_wait_queue(&state->info->delta_msr_wait, &wait);
 
 	return ret;

_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/kernel-janitors