Unified · Split
| @@ -23,6 +23,7 @@ · 22 unmodified lines | |||
| 23 | #include <linux/pci.h> | 23 | #include <linux/pci.h> |
| 24 | #include <linux/slab.h> | 24 | #include <linux/slab.h> |
| 25 | #include <linux/workqueue.h> | 25 | #include <linux/workqueue.h> |
| 26 | #include <linux/kthread.h> | ||
| 26 | #include <asm/eeh_event.h> | 27 | #include <asm/eeh_event.h> |
| 27 | #include <asm/ppc-pci.h> | 28 | #include <asm/ppc-pci.h> |
| 28 | 29 | ||
| @@ -59,8 +60,6 @@ static int eeh_event_handler(void * dummy) · 30 unmodified lines | |||
| 59 | struct eeh_event *event; | 60 | struct eeh_event *event; |
| 60 | struct eeh_dev *edev; | 61 | struct eeh_dev *edev; |
| 61 | 62 | ||
| 62 | set_task_comm(current, "eehd"); | ||
| 63 | |||
| 64 | spin_lock_irqsave(&eeh_eventlist_lock, flags); | 63 | spin_lock_irqsave(&eeh_eventlist_lock, flags); |
| 65 | event = NULL; | 64 | event = NULL; |
| 66 | 65 | ||
| @@ -113,7 +112,7 @@ static int eeh_event_handler(void * dummy) · 46 unmodified lines | |||
| 113 | */ | 112 | */ |
| 114 | static void eeh_thread_launcher(struct work_struct *dummy) | 113 | static void eeh_thread_launcher(struct work_struct *dummy) |
| 115 | { | 114 | { |
| 116 | if (kernel_thread(eeh_event_handler, NULL, CLONE_KERNEL) < 0) | 115 | if (IS_ERR(kthread_run(eeh_event_handler, NULL, "eehd"))) |
| 117 | printk(KERN_ERR "Failed to start EEH daemon\n"); | 116 | printk(KERN_ERR "Failed to start EEH daemon\n"); |
| 118 | } | 117 | } |
| 119 | 118 | ||