Skip to content

Commit

Permalink
Convert s390_collect_crw_info() in s390mach.c from being started
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Serge E. Hallyn authored and Martin Schwidefsky committed Jun 29, 2006
1 parent 774fc4e commit 84d11c5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/s390/s390mach.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <linux/errno.h>
#include <linux/workqueue.h>
#include <linux/time.h>
#include <linux/kthread.h>

#include <asm/lowcore.h>

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 84d11c5

Please sign in to comment.