Re: [PATCH tip/core/rcu 36/55] rcu: Prevent early bootset_need_resched() from __rcu_pending()

From: Josh Triplett
Date: Sun Oct 16 2011 - 21:51:19 EST


On Tue, Sep 06, 2011 at 11:00:30AM -0700, Paul E. McKenney wrote:
> From: Paul E. McKenney <paul.mckenney@xxxxxxxxxx>
>
> There isn't a whole lot of point in poking the scheduler before there
> are other tasks to switch to. This commit therefore adds a check
> for rcu_scheduler_fully_active in __rcu_pending() to suppress any
> pre-scheduler calls to set_need_resched(). The downside of this approach
> is additional runtime overhead in a reasonably hot code path.

If you're concerned about the runtime overhead, this does seem like a
perfect candidate for jump labels.

- Josh Triplett
--
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/