From: Rusty Russell Date: Sun, 11 Jan 2009 05:58:09 +0000 (-0800) Subject: x86: change flush_tlb_others to take a const struct cpumask X-Git-Tag: v2.6.30-rc1~3^2~6^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4595f9620cda8a1e973588e743cf5f8436dd20c6;p=pandora-kernel.git x86: change flush_tlb_others to take a const struct cpumask Impact: reduce stack usage, use new cpumask API. This is made a little more tricky by uv_flush_tlb_others which actually alters its argument, for an IPI to be sent to the remaining cpus in the mask. I solve this by allocating a cpumask_var_t for this case and falling back to IPI should this fail. To eliminate temporaries in the caller, all flush_tlb_others implementations now do the this-cpu-elimination step themselves. Note also the curious "cpus_or(f->flush_cpumask, cpumask, f->flush_cpumask)" which has been there since pre-git and yet f->flush_cpumask is always zero at this point. Signed-off-by: Rusty Russell Signed-off-by: Mike Travis --- Reading git-diff-tree failed