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
e33de428
Commit
e33de428
authored
May 14, 2003
by
Dave Jones
Committed by
Linus Torvalds
May 14, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Shorten rcu_check_quiescent_state.
Single spin_unlock path cuts this down a little..
parent
73ba856c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
12 deletions
+10
-12
kernel/rcupdate.c
kernel/rcupdate.c
+10
-12
No files found.
kernel/rcupdate.c
View file @
e33de428
...
...
@@ -121,9 +121,8 @@ static void rcu_check_quiescent_state(void)
{
int
cpu
=
smp_processor_id
();
if
(
!
test_bit
(
cpu
,
&
rcu_ctrlblk
.
rcu_cpu_mask
))
{
if
(
!
test_bit
(
cpu
,
&
rcu_ctrlblk
.
rcu_cpu_mask
))
return
;
}
/*
* Races with local timer interrupt - in the worst case
...
...
@@ -134,23 +133,22 @@ static void rcu_check_quiescent_state(void)
RCU_last_qsctr
(
cpu
)
=
RCU_qsctr
(
cpu
);
return
;
}
if
(
RCU_qsctr
(
cpu
)
==
RCU_last_qsctr
(
cpu
))
{
if
(
RCU_qsctr
(
cpu
)
==
RCU_last_qsctr
(
cpu
))
return
;
}
spin_lock
(
&
rcu_ctrlblk
.
mutex
);
if
(
!
test_bit
(
cpu
,
&
rcu_ctrlblk
.
rcu_cpu_mask
))
{
spin_unlock
(
&
rcu_ctrlblk
.
mutex
);
return
;
}
if
(
!
test_bit
(
cpu
,
&
rcu_ctrlblk
.
rcu_cpu_mask
))
goto
out_unlock
;
clear_bit
(
cpu
,
&
rcu_ctrlblk
.
rcu_cpu_mask
);
RCU_last_qsctr
(
cpu
)
=
RCU_QSCTR_INVALID
;
if
(
rcu_ctrlblk
.
rcu_cpu_mask
!=
0
)
{
spin_unlock
(
&
rcu_ctrlblk
.
mutex
);
return
;
}
if
(
rcu_ctrlblk
.
rcu_cpu_mask
!=
0
)
goto
out_unlock
;
rcu_ctrlblk
.
curbatch
++
;
rcu_start_batch
(
rcu_ctrlblk
.
maxbatch
);
out_unlock:
spin_unlock
(
&
rcu_ctrlblk
.
mutex
);
}
...
...
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