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
b20de918
Commit
b20de918
authored
Jul 25, 2009
by
Thomas Gleixner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
softlockup: Convert to atomic_spinlock
Signed-off-by:
Thomas Gleixner
<
tglx@linutronix.de
>
parent
938ba5eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
kernel/softlockup.c
kernel/softlockup.c
+3
-3
No files found.
kernel/softlockup.c
View file @
b20de918
...
...
@@ -20,7 +20,7 @@
#include <asm/irq_regs.h>
static
DEFINE_SPINLOCK
(
print_lock
);
static
DEFINE_
ATOMIC_
SPINLOCK
(
print_lock
);
static
DEFINE_PER_CPU
(
unsigned
long
,
touch_timestamp
);
static
DEFINE_PER_CPU
(
unsigned
long
,
print_timestamp
);
...
...
@@ -149,7 +149,7 @@ void softlockup_tick(void)
per_cpu
(
print_timestamp
,
this_cpu
)
=
touch_timestamp
;
spin_lock
(
&
print_lock
);
atomic_
spin_lock
(
&
print_lock
);
printk
(
KERN_ERR
"BUG: soft lockup - CPU#%d stuck for %lus! [%s:%d]
\n
"
,
this_cpu
,
now
-
touch_timestamp
,
current
->
comm
,
task_pid_nr
(
current
));
...
...
@@ -159,7 +159,7 @@ void softlockup_tick(void)
show_regs
(
regs
);
else
dump_stack
();
spin_unlock
(
&
print_lock
);
atomic_
spin_unlock
(
&
print_lock
);
if
(
softlockup_panic
)
panic
(
"softlockup: hung tasks"
);
...
...
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