From: "Serge E. Hallyn" <serue@us.ibm.com>
To: lkml <linux-kernel@vger.kernel.org>
Cc: utz.bacher@de.ibm.com, fpavlic@de.ibm.com, tspat@de.ibm.com,
linux-390@vm.marist.edu
Subject: [PATCH 3/3] kthread: convert the s390 qeth driver to use kthread
Date: Thu, 24 Aug 2006 16:25:27 -0500 [thread overview]
Message-ID: <20060824212527.GD30007@sergelap.austin.ibm.com> (raw)
Convert the s390 qeth driver, which can be a module, to use kthread
rather than kernel_thread, whose EXPORT_SYMBOL is deprecated.
Compiles and boots, and dmesg shows it is in use for eth0.
Signed-off-by: Serge E. Hallyn <serue@us.ibm.com>
---
drivers/s390/net/qeth_main.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
315bee45e81ba606c009b59f8ad100bc5818eda3
diff --git a/drivers/s390/net/qeth_main.c b/drivers/s390/net/qeth_main.c
index 5fff1f9..06c1a17 100644
--- a/drivers/s390/net/qeth_main.c
+++ b/drivers/s390/net/qeth_main.c
@@ -50,6 +50,7 @@
#include <linux/mii.h>
#include <linux/rcupdate.h>
#include <linux/ethtool.h>
+#include <linux/kthread.h>
#include <net/arp.h>
#include <net/ip.h>
@@ -956,7 +957,6 @@ qeth_register_ip_addresses(void *ptr)
struct qeth_card *card;
card = (struct qeth_card *) ptr;
- daemonize("qeth_reg_ip");
QETH_DBF_TEXT(trace,4,"regipth1");
if (!qeth_do_run_thread(card, QETH_SET_IP_THREAD))
return 0;
@@ -974,7 +974,6 @@ qeth_set_promisc_mode(void *ptr)
{
struct qeth_card *card = (struct qeth_card *) ptr;
- daemonize("qeth_setprm");
QETH_DBF_TEXT(trace,4,"setprm1");
if (!qeth_do_run_thread(card, QETH_SET_PROMISC_MODE_THREAD))
return 0;
@@ -991,7 +990,6 @@ qeth_recover(void *ptr)
int rc = 0;
card = (struct qeth_card *) ptr;
- daemonize("qeth_recover");
QETH_DBF_TEXT(trace,2,"recover1");
QETH_DBF_HEX(trace, 2, &card, sizeof(void *));
if (!qeth_do_run_thread(card, QETH_RECOVER_THREAD))
@@ -1048,11 +1046,11 @@ qeth_start_kernel_thread(struct qeth_car
return;
if (qeth_do_start_thread(card, QETH_SET_IP_THREAD))
- kernel_thread(qeth_register_ip_addresses, (void *)card,SIGCHLD);
+ kthread_run(qeth_register_ip_addresses, (void *)card, "qeth_reg_ip");
if (qeth_do_start_thread(card, QETH_SET_PROMISC_MODE_THREAD))
- kernel_thread(qeth_set_promisc_mode, (void *)card, SIGCHLD);
+ kthread_run(qeth_set_promisc_mode, (void *)card, "qeth_setprm");
if (qeth_do_start_thread(card, QETH_RECOVER_THREAD))
- kernel_thread(qeth_recover, (void *) card, SIGCHLD);
+ kthread_run(qeth_recover, (void *) card, "qeth_recover");
}
--
1.1.6
next reply other threads:[~2006-08-24 22:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-24 21:25 Serge E. Hallyn [this message]
2006-08-25 14:42 ` Christoph Hellwig
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=20060824212527.GD30007@sergelap.austin.ibm.com \
--to=serue@us.ibm.com \
--cc=fpavlic@de.ibm.com \
--cc=linux-390@vm.marist.edu \
--cc=linux-kernel@vger.kernel.org \
--cc=tspat@de.ibm.com \
--cc=utz.bacher@de.ibm.com \
/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
all inboxes | Powered by JetHome®