Re: [RFC PATCHSET] sched,perf: unify tracers in sched and move perf on top of TP

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Tejun Heo
Date: Thursday, May 6, 2010 - 1:41 am

Hello, Ingo.

On 05/06/2010 10:27 AM, Ingo Molnar wrote:

Okay.  Well, cmwq's usage of it isn't that hairy.  It's used for two
things.

1. to count the number of currently running workers which I think is
   fine for such hooks.

2. to wake up another worker.  I don't think this falls in the
   category of "behavior/semantics" change.  It just does
   try_to_wake_up() with the only caveat being it's called under the
   rq lock so requires a different API.  There's nothing which alters
   the scheduler behavior in any pervasive way.  It just looks at the
   counter and wakes up another task if the condition is right
   *before* beginning any of real scheduling work.

But, anyways, making a dedicated fixed function calls certainly isn't
a problem and might as well be slightly cheaper as it's always gonna
be there anyway.  If that's preferred, I'll happily take that path.

Thanks.

-- 
tejun
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC PATCHSET] sched,perf: unify tracers in sched and ..., Frederic Weisbecker, (Wed May 5, 11:30 am)
Re: [RFC PATCHSET] sched,perf: unify tracers in sched and ..., Tejun Heo, (Thu May 6, 1:41 am)