Re: [PATCH] v2 Teach RCU that idle task is not quiscent state at boot

From: Nick Piggin
Date: Mon Feb 23 2009 - 23:03:43 EST


On Tuesday 24 February 2009 07:43:32 Paul E. McKenney wrote:

> @@ -80,6 +81,10 @@ void wakeme_after_rcu(struct rcu_head *head)
> void synchronize_rcu(void)
> {
> struct rcu_synchronize rcu;
> +
> + if (num_online_cpus() == 1)
> + return; /* If UP, synchronize_rcu() is a grace period! */
> +

Nice patch... May I just suggest a comment to say that this is
also a correctness requirement due to the grace period holdoff
for early boot?

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/