Commit 84d11c5d authored by Serge E. Hallyn's avatar Serge E. Hallyn Committed by Martin Schwidefsky

Convert s390_collect_crw_info() in s390mach.c from being started

as a deprecated kernel_thread to a kthread.
Signed-off-by: default avatarSerge E. Hallyn <serue@us.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 774fc4ef
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/workqueue.h> #include <linux/workqueue.h>
#include <linux/time.h> #include <linux/time.h>
#include <linux/kthread.h>
#include <asm/lowcore.h> #include <asm/lowcore.h>
...@@ -56,8 +57,6 @@ s390_collect_crw_info(void *param) ...@@ -56,8 +57,6 @@ s390_collect_crw_info(void *param)
unsigned int chain; unsigned int chain;
sem = (struct semaphore *)param; sem = (struct semaphore *)param;
/* Set a nice name. */
daemonize("kmcheck");
repeat: repeat:
down_interruptible(sem); down_interruptible(sem);
slow = 0; slow = 0;
...@@ -516,7 +515,7 @@ arch_initcall(machine_check_init); ...@@ -516,7 +515,7 @@ arch_initcall(machine_check_init);
static int __init static int __init
machine_check_crw_init (void) 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 */ ctl_set_bit(14, 28); /* enable channel report MCH */
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment