diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2010-01-04 18:09:04 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-01-13 03:06:03 -0500 |
commit | 39c0bbfc07c6e28db7346d0e11106f2d045d3035 (patch) | |
tree | 82f0fdacb1eea0334e76e0adb8b9d5beec66f2a7 /kernel/rcutree.h | |
parent | f3a8b5c6aa543bd87764418d63632eb65b80e2f6 (diff) |
rcu: Eliminate local variable lastcomp from force_quiescent_state()
Because rsp->fqs_active is set to 1 across
force_quiescent_state()'s switch statement, rcu_start_gp() will
refrain from starting a new grace period during this time.
Therefore, rsp->gpnum is constant, and can be propagated to all
uses of lastcomp, eliminating this local variable.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: laijs@cn.fujitsu.com
Cc: dipankar@in.ibm.com
Cc: mathieu.desnoyers@polymtl.ca
Cc: josh@joshtriplett.org
Cc: dvhltc@us.ibm.com
Cc: niv@us.ibm.com
Cc: peterz@infradead.org
Cc: rostedt@goodmis.org
Cc: Valdis.Kletnieks@vt.edu
Cc: dhowells@redhat.com
LKML-Reference: <12626465502985-git-send-email->
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/rcutree.h')
-rw-r--r-- | kernel/rcutree.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/rcutree.h b/kernel/rcutree.h index dc386a7c634f..534856121b06 100644 --- a/kernel/rcutree.h +++ b/kernel/rcutree.h | |||
@@ -296,8 +296,6 @@ struct rcu_state { | |||
296 | long orphan_qlen; /* Number of orphaned cbs. */ | 296 | long orphan_qlen; /* Number of orphaned cbs. */ |
297 | spinlock_t fqslock; /* Only one task forcing */ | 297 | spinlock_t fqslock; /* Only one task forcing */ |
298 | /* quiescent states. */ | 298 | /* quiescent states. */ |
299 | long completed_fqs; /* Value of completed @ snap. */ | ||
300 | /* Protected by fqslock. */ | ||
301 | unsigned long jiffies_force_qs; /* Time at which to invoke */ | 299 | unsigned long jiffies_force_qs; /* Time at which to invoke */ |
302 | /* force_quiescent_state(). */ | 300 | /* force_quiescent_state(). */ |
303 | unsigned long n_force_qs; /* Number of calls to */ | 301 | unsigned long n_force_qs; /* Number of calls to */ |