conversion of schedule_task to schedule_work
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:
drivers/char/istallion.c renamed from drivers/char/istallion.orig.c +2 -2
@@ -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); } } }