rcu: repair code-duplication FIXMEs
Combine the duplicate definitions of ULONG_CMP_GE(), ULONG_CMP_LT(), and rcu_preempt_depth() into include/linux/rcupdate.h. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
This commit is contained in:
parent
53d84e004d
commit
a3dc3fb161
5 changed files with 15 additions and 20 deletions
|
|
@ -133,13 +133,6 @@ static inline int rcu_needs_cpu(int cpu)
|
|||
return rcu_preempt_needs_cpu();
|
||||
}
|
||||
|
||||
/*
|
||||
* Defined as macro as it is a very low level header
|
||||
* included from areas that don't even know about current
|
||||
* FIXME: combine with include/linux/rcutree.h into rcupdate.h.
|
||||
*/
|
||||
#define rcu_preempt_depth() (current->rcu_read_lock_nesting)
|
||||
|
||||
#endif /* #else #ifdef CONFIG_TINY_RCU */
|
||||
|
||||
static inline void rcu_note_context_switch(int cpu)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue