[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20081107093050.GC7787@elte.hu>
Date: Fri, 7 Nov 2008 10:30:50 +0100
From: Ingo Molnar <mingo@...e.hu>
To: Li Zefan <lizf@...fujitsu.com>
Cc: Peter Zijlstra <a.p.zijlstra@...llo.nl>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] sched: rewrite SCHED_CPUMASK_ALLOC
* Li Zefan <lizf@...fujitsu.com> wrote:
> Sorry, you are right - keep the SCHED_CPUMASK_DECLARE() macro please.
> >
> > But the other macros can become an inline function just fine, correct?
> >
>
> Yes, but sched_cpumask_alloc() should be declared this way:
> void sched_cpumask_alloc(struct **allmasks)
> but not:
> struct *allmasks sched_cpumask_alloc(void)
>
> Because the latter is not workable for <128 CPUs case.
>
> (patch is based on [PATCH] sched: fix memory leak in a failing path)
applied to tip/sched/core, thanks!
Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists