diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2010-08-13 19:16:25 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2010-08-20 12:00:13 -0400 |
commit | a3dc3fb161f9b4066c0fce22db72638af8baf83b (patch) | |
tree | e41a30edd7e4965807b199da7637a6d6e44d4ed1 /kernel/rcutree.h | |
parent | 53d84e004d5e8c018be395c4330dc72fd60bd13e (diff) |
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>
Diffstat (limited to 'kernel/rcutree.h')
-rw-r--r-- | kernel/rcutree.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/kernel/rcutree.h b/kernel/rcutree.h index 7abd439a7573..7918ba61873f 100644 --- a/kernel/rcutree.h +++ b/kernel/rcutree.h | |||
@@ -272,9 +272,6 @@ struct rcu_data { | |||
272 | 272 | ||
273 | #endif /* #ifdef CONFIG_RCU_CPU_STALL_DETECTOR */ | 273 | #endif /* #ifdef CONFIG_RCU_CPU_STALL_DETECTOR */ |
274 | 274 | ||
275 | #define ULONG_CMP_GE(a, b) (ULONG_MAX / 2 >= (a) - (b)) | ||
276 | #define ULONG_CMP_LT(a, b) (ULONG_MAX / 2 < (a) - (b)) | ||
277 | |||
278 | /* | 275 | /* |
279 | * RCU global state, including node hierarchy. This hierarchy is | 276 | * RCU global state, including node hierarchy. This hierarchy is |
280 | * represented in "heap" form in a dense array. The root (first level) | 277 | * represented in "heap" form in a dense array. The root (first level) |