Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
a76dd8f3
Commit
a76dd8f3
authored
Jul 25, 2009
by
Thomas Gleixner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86: convert nmi_lock to atomic_spinlock
Signed-off-by:
Thomas Gleixner
<
tglx@linutronix.de
>
parent
58814bae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
arch/x86/kernel/apic/nmi.c
arch/x86/kernel/apic/nmi.c
+3
-3
No files found.
arch/x86/kernel/apic/nmi.c
View file @
a76dd8f3
...
...
@@ -416,12 +416,12 @@ nmi_watchdog_tick(struct pt_regs *regs, unsigned reason)
/* We can be called before check_nmi_watchdog, hence NULL check. */
if
(
backtrace_mask
!=
NULL
&&
cpumask_test_cpu
(
cpu
,
backtrace_mask
))
{
static
DEFINE_SPINLOCK
(
lock
);
/* Serialise the printks */
static
DEFINE_
ATOMIC_
SPINLOCK
(
lock
);
/* Serialise the printks */
spin_lock
(
&
lock
);
atomic_
spin_lock
(
&
lock
);
printk
(
KERN_WARNING
"NMI backtrace for cpu %d
\n
"
,
cpu
);
dump_stack
();
spin_unlock
(
&
lock
);
atomic_
spin_unlock
(
&
lock
);
cpumask_clear_cpu
(
cpu
,
backtrace_mask
);
}
...
...
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