[PATCH-2.6.0-test5-mm1] conversion of schedule_task to schedule_work
From: Krishnakumar. R
Date: Thu Sep 11 2003 - 06:02:55 EST
Hi,
The following patch converts one 'schedule_task'
in the code, and one 'schedule_task' in a comment
to 'schedule_work'. The file changed is drivers/char/istallion.c
The patch applies against 2.6.0-test5-mm1.
Regards
KK
============================
Compilation Warning removed:
drivers/char/istallion.c:2947: warning: implicit declaration of function `schedule_task'
drivers/char/istallion.c: In function `stli_startbrd':
Linking warning removed:
drivers/built-in.o(.text+0x25e73): In function `stli_poll':
: undefined reference to `schedule_task'
=============================
diffstat output:
istallion.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
=============================
The following is the patch:
--- linux-2.6.0-test5-mm1/drivers/char/istallion.orig.c 2003-09-11 14:51:35.000000000 +0530
+++ linux-2.6.0-test5-mm1/drivers/char/istallion.c 2003-09-11 14:52:06.000000000 +0530
@@ -2303,7 +2303,7 @@
/*
* FIXME: There's a module removal race here: tty_hangup
- * calls schedule_task which will call into this
+ * calls schedule_work which will call into this
* driver later.
*/
portp = (stliport_t *) arg;
@@ -2944,7 +2944,7 @@
((portp->sigs & TIOCM_CD) == 0)) {
if (portp->flags & ASYNC_CHECK_CD) {
if (tty)
- schedule_task(&portp->tqhangup);
+ schedule_work(&portp->tqhangup);
}
}
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/