mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 00:21:17 +00:00
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
|
@ -26,10 +26,6 @@
|
|||
|
||||
#include <linux/delay.h>
|
||||
|
||||
/* FIXME: merge with definitions in kernel/rcutree.h. */
|
||||
#define ULONG_CMP_GE(a, b) (ULONG_MAX / 2 >= (a) - (b))
|
||||
#define ULONG_CMP_LT(a, b) (ULONG_MAX / 2 < (a) - (b))
|
||||
|
||||
/* Global control variables for preemptible RCU. */
|
||||
struct rcu_preempt_ctrlblk {
|
||||
struct rcu_ctrlblk rcb; /* curtail: ->next ptr of last CB for GP. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue