tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Slight tweak to percpu API



On Sat, Apr 05, 2008 at 01:43:53PM -0700, Jason Thorpe wrote:

> +percpu_getref(percpu_t *pc)
>  {
>  
> +     crit_enter();
>       return percpu_getptr_remote(pc, curcpu());
>  }

I don't have an opinion about the overall change but I think it would be
good to have inline versions of crit_enter / crit_exit for primitives like
this (although currently they are NOPs).

Andrew


Home | Main Index | Thread Index | Old Index