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
nexedi
linux
Commits
6f7d8d35
Commit
6f7d8d35
authored
Jan 29, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Fix wakeup races in power.c, with help from Andrew Morton.
parent
586a9edd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
arch/sparc64/kernel/power.c
arch/sparc64/kernel/power.c
+2
-2
No files found.
arch/sparc64/kernel/power.c
View file @
6f7d8d35
...
...
@@ -29,8 +29,8 @@ static int button_pressed;
static
irqreturn_t
power_handler
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
if
(
button_pressed
==
0
)
{
wake_up
(
&
powerd_wait
);
button_pressed
=
1
;
wake_up
(
&
powerd_wait
);
}
/* FIXME: Check registers for status... */
...
...
@@ -86,10 +86,10 @@ static int powerd(void *__unused)
remove_wait_queue
(
&
powerd_wait
,
&
wait
);
/* Ok, down we go... */
button_pressed
=
0
;
if
(
execve
(
"/sbin/shutdown"
,
argv
,
envp
)
<
0
)
{
printk
(
"powerd: shutdown execution failed
\n
"
);
add_wait_queue
(
&
powerd_wait
,
&
wait
);
button_pressed
=
0
;
goto
again
;
}
return
0
;
...
...
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