diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2006-05-15 09:43:58 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-05-15 11:20:55 -0700 |
commit | 986733e01d258c26107f1da9d8d47c718349ad2f (patch) | |
tree | 5e0f04a707b8c341f79927ba6fffd0ad55d85c29 /include | |
parent | 3b7c8108273bed41a2fc04533cc9f2026ff38c8e (diff) | |
download | kernel_samsung_espresso10-986733e01d258c26107f1da9d8d47c718349ad2f.zip kernel_samsung_espresso10-986733e01d258c26107f1da9d8d47c718349ad2f.tar.gz kernel_samsung_espresso10-986733e01d258c26107f1da9d8d47c718349ad2f.tar.bz2 |
[PATCH] RCU: introduce rcu_needs_cpu() interface
With "Paul E. McKenney" <paulmck@us.ibm.com>
Introduce rcu_needs_cpu() interface. This can be used to tell if there
will be a new rcu batch on a cpu soon by looking at the curlist pointer.
This can be used to avoid to enter a tickless idle state where the cpu
would miss that a new batch is ready when rcu_start_batch would be called
on a different cpu.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: "Paul E. McKenney" <paulmck@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/rcupdate.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/rcupdate.h b/include/linux/rcupdate.h index 5673008..970284f 100644 --- a/include/linux/rcupdate.h +++ b/include/linux/rcupdate.h @@ -132,6 +132,7 @@ static inline void rcu_bh_qsctr_inc(int cpu) } extern int rcu_pending(int cpu); +extern int rcu_needs_cpu(int cpu); /** * rcu_read_lock - mark the beginning of an RCU read-side critical section. |