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
1e5d4962
Commit
1e5d4962
authored
Jan 31, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge nuts.davemloft.net:/disk1/davem/BK/sparcwork-2.6
into nuts.davemloft.net:/disk1/davem/BK/sparc-2.6
parents
4093261b
6f7d8d35
Changes
1
Hide 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 @
1e5d4962
...
@@ -29,8 +29,8 @@ static int button_pressed;
...
@@ -29,8 +29,8 @@ static int button_pressed;
static
irqreturn_t
power_handler
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
static
irqreturn_t
power_handler
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
{
if
(
button_pressed
==
0
)
{
if
(
button_pressed
==
0
)
{
wake_up
(
&
powerd_wait
);
button_pressed
=
1
;
button_pressed
=
1
;
wake_up
(
&
powerd_wait
);
}
}
/* FIXME: Check registers for status... */
/* FIXME: Check registers for status... */
...
@@ -86,10 +86,10 @@ static int powerd(void *__unused)
...
@@ -86,10 +86,10 @@ static int powerd(void *__unused)
remove_wait_queue
(
&
powerd_wait
,
&
wait
);
remove_wait_queue
(
&
powerd_wait
,
&
wait
);
/* Ok, down we go... */
/* Ok, down we go... */
button_pressed
=
0
;
if
(
execve
(
"/sbin/shutdown"
,
argv
,
envp
)
<
0
)
{
if
(
execve
(
"/sbin/shutdown"
,
argv
,
envp
)
<
0
)
{
printk
(
"powerd: shutdown execution failed
\n
"
);
printk
(
"powerd: shutdown execution failed
\n
"
);
add_wait_queue
(
&
powerd_wait
,
&
wait
);
add_wait_queue
(
&
powerd_wait
,
&
wait
);
button_pressed
=
0
;
goto
again
;
goto
again
;
}
}
return
0
;
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