Prev: Allow Intel platforms to declare unsynchronized TSC to kernel
Next: drivers/macintosh: Correct potential double free
From: Peter Zijlstra on 29 Mar 2010 06:10 On Fri, 2010-03-26 at 23:01 +0100, Julia Lawall wrote: > From: Julia Lawall <julia(a)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(a)diku.dk> Thanks for doing this Julia! -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |