History

ppc: eeh_event should just use kthread_run()

Al Viro committed 14 years ago

Commit ecf89e51 parent ba4df281 file · +2 −3Browse files

Unified · Split

arch/powerpc/platforms/pseries/eeh_event.c+2−3
@@ -23,6 +23,7 @@ · 22 unmodified lines
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) · 30 unmodified lines
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) · 46 unmodified lines
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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t