/* Did someone else start a new RCU grace period start since we last checked? Update local state appropriately if so. Must be called on the CPU corresponding to rdp.  */
static int check_for_new_grace_period(struct rcu_state *rsp, struct rcu_data *rdp)
/* Did someone else start a new RCU grace period start since we last checked? Update local state appropriately if so. Must be called on the CPU corresponding to rdp.  */
static int check_for_new_grace_period(struct rcu_state *rsp, struct rcu_data *rdp)
{
	unsigned long flags;
	int ret = 0;
	local_irq_save(flags);
	if (rdp->gpnum != rsp->gpnum) {
		note_new_gpnum(rsp, rdp);
		ret = 1;
	}
	local_irq_restore(flags);
	return ret;
}