rcu: Simplify rcu_pending()/rcu_check_callbacks() API
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Sat, 22 Aug 2009 20:56:51 +0000 (13:56 -0700)
committerIngo Molnar <mingo@elte.hu>
Sun, 23 Aug 2009 08:32:39 +0000 (10:32 +0200)
commita157229cabd6dd8cfa82525fc9bf730c94cc9ac2
tree886013efc2f25dab915640acf46151fac7ae57b4
parent22f00b69f6a7e1e18e821979a23e8307c2de9888
rcu: Simplify rcu_pending()/rcu_check_callbacks() API

All calls from outside RCU are of the form:

if (rcu_pending(cpu))
rcu_check_callbacks(cpu, user);

This is silly, instead we put a call to rcu_pending() in
rcu_check_callbacks(), and then make the outside calls be to
rcu_check_callbacks().  This cuts down on the code a bit and
also gives the compiler a better chance of optimizing.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: laijs@cn.fujitsu.com
Cc: dipankar@in.ibm.com
Cc: akpm@linux-foundation.org
Cc: mathieu.desnoyers@polymtl.ca
Cc: josht@linux.vnet.ibm.com
Cc: dvhltc@us.ibm.com
Cc: niv@us.ibm.com
Cc: peterz@infradead.org
Cc: rostedt@goodmis.org
LKML-Reference: <125097461311-git-send-email->
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/ia64/xen/time.c
include/linux/rcupreempt.h
include/linux/rcutree.h
kernel/rcupreempt.c
kernel/rcutree.c
kernel/timer.c