From: "Krishnakumar. R" <krishnakumar@naturesoft.net>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH-2.6.0-test4-mm1][drivers/char/stallion.c]Task queue to work queue conversion
Date: Mon, 25 Aug 2003 14:55:48 +0530 [thread overview]
Message-ID: <200308251455.48507.krishnakumar@naturesoft.net> (raw)
Dear Andrew and all,
Here is the fix for the drivers/char/stallion.c.
Some schedule_task's had not been changed
to schedule_work. This patch would change them.
The patch is against 2.6.0-test4-mm1.
Without this the drivers/char/stallion.c
cannot be compiled as part of the kernel (make bzImage).
Please do apply!
Regards
KK
===========================================
The following is the patch:
--- linux-2.6.0-test4-mm1/drivers/char/stallion.orig.c 2003-08-23 05:28:12.000000000 +0530
+++ linux-2.6.0-test4-mm1/drivers/char/stallion.c 2003-08-25 14:29:56.000000000 +0530
@@ -4234,7 +4234,7 @@
misr = inb(ioaddr + EREG_DATA);
if (misr & MISR_DCD) {
set_bit(ASYI_DCDCHANGE, &portp->istate);
- schedule_task(&portp->tqueue);
+ schedule_work(&portp->tqueue);
portp->stats.modem++;
}
@@ -5031,7 +5031,7 @@
if ((len == 0) || ((len < STL_TXBUFLOW) &&
(test_bit(ASYI_TXLOW, &portp->istate) == 0))) {
set_bit(ASYI_TXLOW, &portp->istate);
- schedule_task(&portp->tqueue);
+ schedule_work(&portp->tqueue);
}
if (len == 0) {
@@ -5248,7 +5248,7 @@
ipr = stl_sc26198getreg(portp, IPR);
if (ipr & IPR_DCDCHANGE) {
set_bit(ASYI_DCDCHANGE, &portp->istate);
- schedule_task(&portp->tqueue);
+ schedule_work(&portp->tqueue);
portp->stats.modem++;
}
break;
==============================================
diffstat output:
stallion.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
==============================================
Compilation errors fixed:
drivers/char/stallion.c: In function `stl_cd1400mdmisr':
drivers/char/stallion.c:4237: warning: implicit declaration of function `schedule_task'
==============================================
Linking errors fixed:
drivers/built-in.o(.text+0x40ece): In function `stl_cd1400mdmisr':
: undefined reference to `schedule_task'
drivers/built-in.o(.text+0x42038): In function `stl_sc26198txisr':
: undefined reference to `schedule_task'
drivers/built-in.o(.text+0x424b9): In function `stl_sc26198otherisr':
: undefined reference to `schedule_task'
make: *** [.tmp_vmlinux1] Error 1
===============================================
reply other threads:[~2003-08-25 9:23 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=200308251455.48507.krishnakumar@naturesoft.net \
--to=krishnakumar@naturesoft.net \
--cc=akpm@osdl.org \
--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;
as well as URLs for NNTP newsgroup(s).