diff options
author | Klaus-Dieter Wacker <kdwacker@de.ibm.com> | 2009-03-23 23:27:43 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-03-24 18:24:26 -0400 |
commit | e5b5719b06d3c614e904bc817177bd3c49c52edb (patch) | |
tree | c6801e7a3d9db2ca8613915b28b33b1b4a80595f /drivers/s390/net | |
parent | 5393f3162d3a85317e1e22c33539905fa5258e5f (diff) |
Use kthread instead of kernel_thread
Lcs uses low-level kernel_thread implementation.
All drivers should use <linux/kthread.h> API instead.
Signed-off-by: Klaus-Dieter Wacker <kdwacker@de.ibm.com>
Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390/net')
-rw-r--r-- | drivers/s390/net/lcs.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/s390/net/lcs.c b/drivers/s390/net/lcs.c index 083f787d260d..840dbf3d3416 100644 --- a/drivers/s390/net/lcs.c +++ b/drivers/s390/net/lcs.c | |||
@@ -39,6 +39,7 @@ | |||
39 | #include <linux/in.h> | 39 | #include <linux/in.h> |
40 | #include <linux/igmp.h> | 40 | #include <linux/igmp.h> |
41 | #include <linux/delay.h> | 41 | #include <linux/delay.h> |
42 | #include <linux/kthread.h> | ||
42 | #include <net/arp.h> | 43 | #include <net/arp.h> |
43 | #include <net/ip.h> | 44 | #include <net/ip.h> |
44 | 45 | ||
@@ -1259,7 +1260,6 @@ lcs_register_mc_addresses(void *data) | |||
1259 | struct in_device *in4_dev; | 1260 | struct in_device *in4_dev; |
1260 | 1261 | ||
1261 | card = (struct lcs_card *) data; | 1262 | card = (struct lcs_card *) data; |
1262 | daemonize("regipm"); | ||
1263 | 1263 | ||
1264 | if (!lcs_do_run_thread(card, LCS_SET_MC_THREAD)) | 1264 | if (!lcs_do_run_thread(card, LCS_SET_MC_THREAD)) |
1265 | return 0; | 1265 | return 0; |
@@ -1753,11 +1753,10 @@ lcs_start_kernel_thread(struct work_struct *work) | |||
1753 | struct lcs_card *card = container_of(work, struct lcs_card, kernel_thread_starter); | 1753 | struct lcs_card *card = container_of(work, struct lcs_card, kernel_thread_starter); |
1754 | LCS_DBF_TEXT(5, trace, "krnthrd"); | 1754 | LCS_DBF_TEXT(5, trace, "krnthrd"); |
1755 | if (lcs_do_start_thread(card, LCS_RECOVERY_THREAD)) | 1755 | if (lcs_do_start_thread(card, LCS_RECOVERY_THREAD)) |
1756 | kernel_thread(lcs_recovery, (void *) card, SIGCHLD); | 1756 | kthread_run(lcs_recovery, card, "lcs_recover"); |
1757 | #ifdef CONFIG_IP_MULTICAST | 1757 | #ifdef CONFIG_IP_MULTICAST |
1758 | if (lcs_do_start_thread(card, LCS_SET_MC_THREAD)) | 1758 | if (lcs_do_start_thread(card, LCS_SET_MC_THREAD)) |
1759 | kernel_thread(lcs_register_mc_addresses, | 1759 | kthread_run(lcs_register_mc_addresses, card, "regipm"); |
1760 | (void *) card, SIGCHLD); | ||
1761 | #endif | 1760 | #endif |
1762 | } | 1761 | } |
1763 | 1762 | ||
@@ -2269,7 +2268,6 @@ lcs_recovery(void *ptr) | |||
2269 | int rc; | 2268 | int rc; |
2270 | 2269 | ||
2271 | card = (struct lcs_card *) ptr; | 2270 | card = (struct lcs_card *) ptr; |
2272 | daemonize("lcs_recover"); | ||
2273 | 2271 | ||
2274 | LCS_DBF_TEXT(4, trace, "recover1"); | 2272 | LCS_DBF_TEXT(4, trace, "recover1"); |
2275 | if (!lcs_do_run_thread(card, LCS_RECOVERY_THREAD)) | 2273 | if (!lcs_do_run_thread(card, LCS_RECOVERY_THREAD)) |