MIPS: Use set_cpus_allowed_ptr
authorJulia Lawall <julia@diku.dk>
Fri, 26 Mar 2010 22:03:07 +0000 (23:03 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 21 May 2010 20:31:14 +0000 (21:31 +0100)
commited1bbdefc39477a1301fb466139ffb0c00f0d006
tree14315e6a0428bb1ef3e1c7f71b4623f2dbdc5dde
parent8b108c609adefd98577c35f0a41497a610041a6c
MIPS: Use set_cpus_allowed_ptr

From: Julia Lawall <julia@diku.dk>

Use set_cpus_allowed_ptr rather than set_cpus_allowed.

The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
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)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
To: peterz@infradead.org
To: mingo@elte.hu
To: tglx@linutronix.de
To: oleg@redhat.com
To: linux-mips@linux-mips.org
To: linux-kernel@vger.kernel.org
To: kernel-janitors@vger.kernel.org
Patchwork: http://patchwork.linux-mips.org/patch/1087/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/cpufreq/loongson2_cpufreq.c
arch/mips/kernel/mips-mt-fpaff.c
arch/mips/kernel/traps.c