From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Zijlstra Date: Mon, 29 Mar 2010 10:07:19 +0000 Subject: Re: [PATCH 1/7] arch/arm: Use set_cpus_allowed_ptr Message-Id: <1269857239.12097.250.camel@laptop> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-arm-kernel@lists.infradead.org On Fri, 2010-03-26 at 23:01 +0100, Julia Lawall wrote: > From: Julia Lawall > > Use set_cpus_allowed_ptr rather than set_cpus_allowed. > > The semantic patch that makes this change is as follows: > (http://coccinelle.lip6.fr/) > > // > @@ > expression E1,E2; > @@ > > - set_cpus_allowed(E1, cpumask_of_cpu(E2)) > + set_cpus_allowed_ptr(E1, cpumask_of(E2)) > > @@ > expression E; > identifier I; > @@ > > - set_cpus_allowed(E, I) > + set_cpus_allowed_ptr(E, &I) > // > > Signed-off-by: Julia Lawall Thanks for doing this Julia!