Skip to content

Commit ecf89e5

Browse files
author
Al Viro
committed
ppc: eeh_event should just use kthread_run()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent ba4df28 commit ecf89e5

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎arch/powerpc/platforms/pseries/eeh_event.c‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include <linux/pci.h>
2424
#include <linux/slab.h>
2525
#include <linux/workqueue.h>
26+
#include <linux/kthread.h>
2627
#include <asm/eeh_event.h>
2728
#include <asm/ppc-pci.h>
2829

@@ -59,8 +60,6 @@ static int eeh_event_handler(void * dummy)
5960
struct eeh_event *event;
6061
struct eeh_dev *edev;
6162

62-
set_task_comm(current, "eehd");
63-
6463
spin_lock_irqsave(&eeh_eventlist_lock, flags);
6564
event = NULL;
6665

@@ -113,7 +112,7 @@ static int eeh_event_handler(void * dummy)
113112
*/
114113
static void eeh_thread_launcher(struct work_struct *dummy)
115114
{
116-
if (kernel_thread(eeh_event_handler, NULL, CLONE_KERNEL) < 0)
115+
if (IS_ERR(kthread_run(eeh_event_handler, NULL, "eehd")))
117116
printk(KERN_ERR "Failed to start EEH daemon\n");
118117
}
119118

0 commit comments

Comments
 (0)