lkml.org 
[lkml]   [2011]   [Oct]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH tip/core/rcu 36/55] rcu: Prevent early boot set_need_resched() from __rcu_pending()
On Sun, Oct 16, 2011 at 06:49:15PM -0700, Josh Triplett wrote:
> On Tue, Sep 06, 2011 at 11:00:30AM -0700, Paul E. McKenney wrote:
> > From: Paul E. McKenney <paul.mckenney@linaro.org>
> >
> > 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.

I have added this to my todo list, but would welcome a patch.

Thanx, Paul



\
 
 \ /
  Last update: 2011-10-24 14:11    [W:1.157 / U:0.320 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site