tech-kern archive

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

Re: lwp resource limit



On Jun 8, 2012, at 4:47 PM, Matt Thomas wrote:
> 
> Rather than have all the #ifdef __HAVE_CPU_MAXLWP how about doing
> 
> #ifndef __HAVE_CPU_MAXLWP
> static inline int
> cpu_maxlwp(void)
> {
>       return maxlwp;
> }
> #endif
> 
> in an appropriate header file?

Or maybe

static inline int
cpu_maxlwp(int new_maxlwp)
{
        return new_maxlwp;
}

So that maxlwp can be made static to kern_lwp.c


Home | Main Index | Thread Index | Old Index