[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150803100449.52f4dadb@gandalf.local.home>
Date: Mon, 3 Aug 2015 10:04:49 -0400
From: Steven Rostedt <rostedt@...dmis.org>
To: yalin wang <yalin.wang2010@...il.com>
Cc: Minfei Huang <mnfhuang@...il.com>, tj@...nel.org, mingo@...hat.com,
linux-kernel@...r.kernel.org, mhuang@...hat.com
Subject: Re: [PATCH] workqueue: Add the allocation flags to function
schedule_on_each_cpu_gfp
On Mon, 3 Aug 2015 17:15:53 +0800
yalin wang <yalin.wang2010@...il.com> wrote:
> better to also provide a wrapper function with name schedule_on_each_cpu(),
> as this function is used frequently .
>
> #define schedule_on_each_cpu(f) schedule_on_each_cpu_gfp(f, GFP_KERNEL)
I was about to say pretty much the same thing. But please make it an
inline function:
static inline int schedule_on_each_cpu(work_func_t func)
{
return schedule_on_each_cpu_gfp(func, GFP_KERNEL);
}
Otherwise, NACK to the patch to the ftrace code.
-- Steve
--
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