/* Check to see if there is a new grace period of which this CPU is not yet aware, and if so, set up local rcu_data state for it. Otherwise, see if this CPU has just passed through its first quiescent state for this grace period, and record that fact if so.  */
static void rcu_check_quiescent_state(struct rcu_state *rsp, struct rcu_data *rdp)
/* Check to see if there is a new grace period of which this CPU is not yet aware, and if so, set up local rcu_data state for it. Otherwise, see if this CPU has just passed through its first quiescent state for this grace period, and record that fact if so.  */
static void rcu_check_quiescent_state(struct rcu_state *rsp, struct rcu_data *rdp)
{
	if (check_for_new_grace_period(rsp, rdp))
		return;
	if (!rdp->qs_pending)
		return;
	if (!rdp->passed_quiesc)
		return;
	rcu_report_qs_rdp(rdp->cpu, rsp, rdp, rdp->passed_quiesc_completed);
}