From: Adam Belay <ambx1@neo.rr.com>
To: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] PnP Fixes for 2.6.10-rc1
Date: Mon, 25 Oct 2004 00:52:21 -0400 [thread overview]
Message-ID: <20041025045221.GE3989@neo.rr.com> (raw)
In-Reply-To: <20041025045108.GD3989@neo.rr.com>
# 2004/10/24 23:27:24-04:00 nacc@us.ibm.com
# [PNPBIOS] use msleep_interruptible()
#
# Description: Use msleep_interruptible() instead of
# schedule_timeout() to guarantee the task delays as expected.
#
# Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
# Signed-off-by: Adam Belay <ambx1@neo.rr.com>
diff -Nru a/drivers/pnp/pnpbios/core.c b/drivers/pnp/pnpbios/core.c
--- a/drivers/pnp/pnpbios/core.c 2004-10-25 00:08:14 -04:00
+++ b/drivers/pnp/pnpbios/core.c 2004-10-25 00:08:14 -04:00
@@ -60,6 +60,7 @@
#include <linux/completion.h>
#include <linux/spinlock.h>
#include <linux/dmi.h>
+#include <linux/delay.h>
#include <asm/page.h>
#include <asm/desc.h>
@@ -177,8 +178,7 @@
/*
* Poll every 2 seconds
*/
- set_current_state(TASK_INTERRUPTIBLE);
- schedule_timeout(HZ*2);
+ msleep_interruptible(2000);
if(signal_pending(current))
break;
next prev parent reply other threads:[~2004-10-25 4:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-25 4:51 [PATCH] PnP Fixes for 2.6.10-rc1 Adam Belay
2004-10-25 4:52 ` Adam Belay [this message]
2004-10-25 4:53 ` Adam Belay
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=20041025045221.GE3989@neo.rr.com \
--to=ambx1@neo.rr.com \
--cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox