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
a2c1e064
Commit
a2c1e064
authored
Nov 29, 2006
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Run ctrl-alt-del action for sun4v powerdown request.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
c449c38b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
arch/sparc64/kernel/traps.c
arch/sparc64/kernel/traps.c
+11
-1
No files found.
arch/sparc64/kernel/traps.c
View file @
a2c1e064
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
*/
*/
#include <linux/module.h>
#include <linux/module.h>
#include <linux/sched.h>
/* for jiffies */
#include <linux/sched.h>
#include <linux/kernel.h>
#include <linux/kernel.h>
#include <linux/kallsyms.h>
#include <linux/kallsyms.h>
#include <linux/signal.h>
#include <linux/signal.h>
...
@@ -1873,6 +1873,16 @@ void sun4v_resum_error(struct pt_regs *regs, unsigned long offset)
...
@@ -1873,6 +1873,16 @@ void sun4v_resum_error(struct pt_regs *regs, unsigned long offset)
put_cpu
();
put_cpu
();
if
(
ent
->
err_type
==
SUN4V_ERR_TYPE_WARNING_RES
)
{
/* If err_type is 0x4, it's a powerdown request. Do
* not do the usual resumable error log because that
* makes it look like some abnormal error.
*/
printk
(
KERN_INFO
"Power down request...
\n
"
);
kill_cad_pid
(
SIGINT
,
1
);
return
;
}
sun4v_log_error
(
regs
,
&
local_copy
,
cpu
,
sun4v_log_error
(
regs
,
&
local_copy
,
cpu
,
KERN_ERR
"RESUMABLE ERROR"
,
KERN_ERR
"RESUMABLE ERROR"
,
&
sun4v_resum_oflow_cnt
);
&
sun4v_resum_oflow_cnt
);
...
...
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