/* Check to see if any future RCU-related work will need to be done by the current CPU, even if none need be done immediately, returning 1 if so. This function is part of the RCU implementation; it is -not- an exported member of the RCU API.  */
int rcu_needs_cpu(int cpu)
/* Check to see if any future RCU-related work will need to be done by the current CPU, even if none need be done immediately, returning 1 if so. This function is part of the RCU implementation; it is -not- an exported member of the RCU API.  */
int rcu_needs_cpu(int cpu)
{
	return per_cpu(rcu_sched_data, cpu).nxtlist ||
	       per_cpu(rcu_bh_data, cpu).nxtlist ||
	       rcu_preempt_needs_cpu(cpu);
}