diff options
author | Serge E. Hallyn <serue@us.ibm.com> | 2006-06-29 15:03:17 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2006-06-29 15:03:17 +0200 |
commit | 84d11c5dcc4cdfe962fcd58a0302711befcdceda (patch) | |
tree | e1044aeaf0c18bef3f359fc873489f9ae61a6bf8 /drivers/s390 | |
parent | 774fc4ef718f7343306ba3695e8a2622cbd9764d (diff) | |
download | op-kernel-dev-84d11c5dcc4cdfe962fcd58a0302711befcdceda.zip op-kernel-dev-84d11c5dcc4cdfe962fcd58a0302711befcdceda.tar.gz |
Convert s390_collect_crw_info() in s390mach.c from being started
as a deprecated kernel_thread to a kthread.
Signed-off-by: Serge E. Hallyn <serue@us.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/s390mach.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/s390/s390mach.c b/drivers/s390/s390mach.c index f99e553..8dc7500 100644 --- a/drivers/s390/s390mach.c +++ b/drivers/s390/s390mach.c @@ -14,6 +14,7 @@ #include <linux/errno.h> #include <linux/workqueue.h> #include <linux/time.h> +#include <linux/kthread.h> #include <asm/lowcore.h> @@ -56,8 +57,6 @@ s390_collect_crw_info(void *param) unsigned int chain; sem = (struct semaphore *)param; - /* Set a nice name. */ - daemonize("kmcheck"); repeat: down_interruptible(sem); slow = 0; @@ -516,7 +515,7 @@ arch_initcall(machine_check_init); static int __init machine_check_crw_init (void) { - kernel_thread(s390_collect_crw_info, &m_sem, CLONE_FS|CLONE_FILES); + kthread_run(s390_collect_crw_info, &m_sem, "kmcheck"); ctl_set_bit(14, 28); /* enable channel report MCH */ return 0; } |