lkml.org 
[lkml]   [2009]   [Aug]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH -tip] v3 Simplify rcu_pending()/rcu_check_callbacks() API
On Mon, Aug 24, 2009 at 09:10:16AM +0200, Peter Zijlstra wrote:
> On Sat, 2009-08-22 at 13:56 -0700, Paul E. McKenney wrote:
> > From: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
> >
> > All calls from outside RCU are of the form:
> >
> > if (rcu_pending(cpu))
> > rcu_check_callbacks(cpu, user);
> >
> > This is silly, instead we put a call to rcu_pending() in
> > rcu_check_callbacks(),
>
> It could be non-silly if rcu_pending() were a very simple inline
> function, in that case it would avoid the full function call.
>
> Still in such a case you can make rcu_check_callbacks() the inline
> function which does the same and have the real function called somthing
> else.
>
> Anyway, its all moot since rcu_pending() wasn't a simple inline function
> anyway, so you've replaced two function calls with one, which seems
> good.

Indeed, there was a time when rcu_pending() was a much simpler function,
but those days are long past. ;-)

Thank you for looking this over!!!

Thanx, Paul


\
 
 \ /
  Last update: 2009-08-24 17:45    [W:0.152 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site