From: Jestin Stoffel <jstnstffl@gmail.com>
To: kernel-janitors@vger.kernel.org
Subject: [KJ] [PATCH]cleaning up current->state in
Date: Wed, 04 Apr 2007 04:56:54 +0000 [thread overview]
Message-ID: <20070404045654.GA17196@crackpot> (raw)
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
reply other threads:[~2007-04-04 4:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070404045654.GA17196@crackpot \
--to=jstnstffl@gmail.com \
--cc=kernel-janitors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.