From: Nishanth Aravamudan <nacc@us.ibm.com>
To: linux-ia64@vger.kernel.org
Subject: [-mm PATCH 09/32] ia64: fix-up schedule_timeout() usage
Date: Mon, 15 Aug 2005 18:12:47 +0000 [thread overview]
Message-ID: <20050815181247.GL2854@us.ibm.com> (raw)
Description: Use schedule_timeout_interruptible() instead of
set_current_state()/schedule_timeout() to reduce kernel size.
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
---
arch/ia64/hp/sim/simserial.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff -urpN 2.6.13-rc5-mm1/arch/ia64/hp/sim/simserial.c 2.6.13-rc5-mm1-dev/arch/ia64/hp/sim/simserial.c
--- 2.6.13-rc5-mm1/arch/ia64/hp/sim/simserial.c 2005-08-07 09:57:44.000000000 -0700
+++ 2.6.13-rc5-mm1-dev/arch/ia64/hp/sim/simserial.c 2005-08-08 13:53:42.000000000 -0700
@@ -642,10 +642,8 @@ static void rs_close(struct tty_struct *
info->event = 0;
info->tty = 0;
if (info->blocked_open) {
- if (info->close_delay) {
- current->state = TASK_INTERRUPTIBLE;
- schedule_timeout(info->close_delay);
- }
+ if (info->close_delay)
+ schedule_timeout_interruptible(info->close_delay);
wake_up_interruptible(&info->open_wait);
}
info->flags &= ~(ASYNC_NORMAL_ACTIVE|ASYNC_CLOSING);
reply other threads:[~2005-08-15 18:12 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=20050815181247.GL2854@us.ibm.com \
--to=nacc@us.ibm.com \
--cc=linux-ia64@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.