lkml.org 
[lkml]   [2013]   [Sep]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/7] sched: Add NEED_RESCHED to the preempt_count
On Wed, Sep 11, 2013 at 09:35:08AM -0700, Andy Lutomirski wrote:
> I bet that this improves cross-cpu wakeup latency, too -- the old code
> would presumably wake up the cpu and then immediately interrupt it.

Yeah,. its what clued Mike in to there being a problem.

> It might be nice to rename one or both of need_resched and
> test_need_resched, though -- the difference is somewhat inscrutable.

I agreed, I've just been unable to come up with anything sane.

The best I could come up with is renaming
{set,clear,test}_need_resched() to {}_tif_need_resched(), so we then end
up with test_tif_need_resched(), which is slightly more different from
need_resched().

Ideas?


\
 
 \ /
  Last update: 2013-09-11 20:21    [W:0.364 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site