Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
ecf89e58
Commit
ecf89e58
authored
Oct 02, 2012
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc: eeh_event should just use kthread_run()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
ba4df280
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
arch/powerpc/platforms/pseries/eeh_event.c
arch/powerpc/platforms/pseries/eeh_event.c
+2
-3
No files found.
arch/powerpc/platforms/pseries/eeh_event.c
View file @
ecf89e58
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
#include <linux/pci.h>
#include <linux/pci.h>
#include <linux/slab.h>
#include <linux/slab.h>
#include <linux/workqueue.h>
#include <linux/workqueue.h>
#include <linux/kthread.h>
#include <asm/eeh_event.h>
#include <asm/eeh_event.h>
#include <asm/ppc-pci.h>
#include <asm/ppc-pci.h>
...
@@ -59,8 +60,6 @@ static int eeh_event_handler(void * dummy)
...
@@ -59,8 +60,6 @@ static int eeh_event_handler(void * dummy)
struct
eeh_event
*
event
;
struct
eeh_event
*
event
;
struct
eeh_dev
*
edev
;
struct
eeh_dev
*
edev
;
set_task_comm
(
current
,
"eehd"
);
spin_lock_irqsave
(
&
eeh_eventlist_lock
,
flags
);
spin_lock_irqsave
(
&
eeh_eventlist_lock
,
flags
);
event
=
NULL
;
event
=
NULL
;
...
@@ -113,7 +112,7 @@ static int eeh_event_handler(void * dummy)
...
@@ -113,7 +112,7 @@ static int eeh_event_handler(void * dummy)
*/
*/
static
void
eeh_thread_launcher
(
struct
work_struct
*
dummy
)
static
void
eeh_thread_launcher
(
struct
work_struct
*
dummy
)
{
{
if
(
kernel_thread
(
eeh_event_handler
,
NULL
,
CLONE_KERNEL
)
<
0
)
if
(
IS_ERR
(
kthread_run
(
eeh_event_handler
,
NULL
,
"eehd"
))
)
printk
(
KERN_ERR
"Failed to start EEH daemon
\n
"
);
printk
(
KERN_ERR
"Failed to start EEH daemon
\n
"
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment