[PATCH] Optimize multi-CPU tlb flushing a little more

Russell King - ARM Linux linux at arm.linux.org.uk
Mon Feb 13 11:23:59 EST 2012


On Mon, Feb 13, 2012 at 09:36:35PM +0530, Rabin Vincent wrote:
> This part conditionally calls get_cpu() but unconditionally calls
> put_cpu():

Can you try getting rid of put_cpu(), and replacing get_cpu()
with smp_processor_id().

In theory, this function should be called with preempt disabled so
smp_processor_id() should be safe here.

Thanks.



More information about the linux-arm-kernel mailing list