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
7b4f86ac
Commit
7b4f86ac
authored
Oct 06, 2011
by
Ingo Molnar
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ras' of
git://amd64.org/linux/bp
into perf/core
parents
9d014020
9aaef96f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
arch/x86/kernel/cpu/mcheck/mce.c
arch/x86/kernel/cpu/mcheck/mce.c
+14
-6
No files found.
arch/x86/kernel/cpu/mcheck/mce.c
View file @
7b4f86ac
...
...
@@ -1140,6 +1140,15 @@ static void mce_start_timer(unsigned long data)
add_timer_on
(
t
,
smp_processor_id
());
}
/* Must not be called in IRQ context where del_timer_sync() can deadlock */
static
void
mce_timer_delete_all
(
void
)
{
int
cpu
;
for_each_online_cpu
(
cpu
)
del_timer_sync
(
&
per_cpu
(
mce_timer
,
cpu
));
}
static
void
mce_do_trigger
(
struct
work_struct
*
work
)
{
call_usermodehelper
(
mce_helper
,
mce_helper_argv
,
NULL
,
UMH_NO_WAIT
);
...
...
@@ -1750,7 +1759,6 @@ static struct syscore_ops mce_syscore_ops = {
static
void
mce_cpu_restart
(
void
*
data
)
{
del_timer_sync
(
&
__get_cpu_var
(
mce_timer
));
if
(
!
mce_available
(
__this_cpu_ptr
(
&
cpu_info
)))
return
;
__mcheck_cpu_init_generic
();
...
...
@@ -1760,16 +1768,15 @@ static void mce_cpu_restart(void *data)
/* Reinit MCEs after user configuration changes */
static
void
mce_restart
(
void
)
{
mce_timer_delete_all
();
on_each_cpu
(
mce_cpu_restart
,
NULL
,
1
);
}
/* Toggle features for corrected errors */
static
void
mce_disable_c
e
(
void
*
all
)
static
void
mce_disable_c
mci
(
void
*
data
)
{
if
(
!
mce_available
(
__this_cpu_ptr
(
&
cpu_info
)))
return
;
if
(
all
)
del_timer_sync
(
&
__get_cpu_var
(
mce_timer
));
cmci_clear
();
}
...
...
@@ -1852,7 +1859,8 @@ static ssize_t set_ignore_ce(struct sys_device *s,
if
(
mce_ignore_ce
^
!!
new
)
{
if
(
new
)
{
/* disable ce features */
on_each_cpu
(
mce_disable_ce
,
(
void
*
)
1
,
1
);
mce_timer_delete_all
();
on_each_cpu
(
mce_disable_cmci
,
NULL
,
1
);
mce_ignore_ce
=
1
;
}
else
{
/* enable ce features */
...
...
@@ -1875,7 +1883,7 @@ static ssize_t set_cmci_disabled(struct sys_device *s,
if
(
mce_cmci_disabled
^
!!
new
)
{
if
(
new
)
{
/* disable cmci */
on_each_cpu
(
mce_disable_c
e
,
NULL
,
1
);
on_each_cpu
(
mce_disable_c
mci
,
NULL
,
1
);
mce_cmci_disabled
=
1
;
}
else
{
/* enable cmci */
...
...
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