path: root/arch/cris/arch-v10
diff options
authorKirill Tkhai <>2014-09-12 17:40:54 +0400
committerIngo Molnar <>2014-09-19 12:35:17 +0200
commitf139caf2e89713687514d9db847a4fa2e29c87a2 (patch)
tree7f078637c477cd40aee60e19a2e5fbd08033fb5e /arch/cris/arch-v10
parent9c368b5b6eccce1cbd7f68142106b3b4ddb1c5b5 (diff)
sched, cleanup, treewide: Remove set_current_state(TASK_RUNNING) after schedule()
schedule(), io_schedule() and schedule_timeout() always return with TASK_RUNNING state set, so one more setting is unnecessary. (All places in patch are visible good, only exception is kiblnd_scheduler() from: drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c Its schedule() is one line above standard 3 lines of unified diff) No places where set_current_state() is used for mb(). Signed-off-by: Kirill Tkhai <> Signed-off-by: Peter Zijlstra (Intel) <> Link: Cc: Alasdair Kergon <> Cc: Anil Belur <> Cc: Arnd Bergmann <> Cc: Dave Kleikamp <> Cc: David Airlie <> Cc: David Howells <> Cc: Dmitry Eremin <> Cc: Frank Blaschka <> Cc: Greg Kroah-Hartman <> Cc: Heiko Carstens <> Cc: Helge Deller <> Cc: Isaac Huang <> Cc: James E.J. Bottomley <> Cc: James E.J. Bottomley <> Cc: J. Bruce Fields <> Cc: Jeff Dike <> Cc: Jesper Nilsson <> Cc: Jiri Slaby <> Cc: Laura Abbott <> Cc: Liang Zhen <> Cc: Linus Torvalds <> Cc: Martin Schwidefsky <> Cc: Masaru Nomura <> Cc: Michael Opdenacker <> Cc: Mikael Starvik <> Cc: Mike Snitzer <> Cc: Neil Brown <> Cc: Oleg Drokin <> Cc: Peng Tao <> Cc: Richard Weinberger <> Cc: Robert Love <> Cc: Steven Rostedt <> Cc: Trond Myklebust <> Cc: Ursula Braun <> Cc: Zi Shen Lim <> Cc: Cc: Cc: Cc: Cc: Cc: Cc: Cc: Cc: Cc: Cc: Cc: Cc: Cc: Cc: Cc: Cc: Signed-off-by: Ingo Molnar <>
Diffstat (limited to 'arch/cris/arch-v10')
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/cris/arch-v10/drivers/sync_serial.c b/arch/cris/arch-v10/drivers/sync_serial.c
index 29eb02ab3f25..0f3983241e60 100644
--- a/arch/cris/arch-v10/drivers/sync_serial.c
+++ b/arch/cris/arch-v10/drivers/sync_serial.c
@@ -1086,7 +1086,6 @@ static ssize_t sync_serial_write(struct file *file, const char *buf,
- set_current_state(TASK_RUNNING);
remove_wait_queue(&port->out_wait_q, &wait);
if (signal_pending(current))
return -EINTR;