x86, tlb, UV: Do small micro-optimization for native_flush_tlb_others()
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Tue, 15 Mar 2011 01:57:37 +0000 (09:57 +0800)
committerIngo Molnar <mingo@elte.hu>
Tue, 15 Mar 2011 07:30:34 +0000 (08:30 +0100)
commit25542c646afbf14c43fa7d2b443055cadb73b07a
treebb49d9918ecf8b2677282bcdbf222949399a5d06
parent8460b3e5bc64955aeefdd8357b3bf7b5ff79b3f2
x86, tlb, UV: Do small micro-optimization for native_flush_tlb_others()

native_flush_tlb_others() is called from:

 flush_tlb_current_task()
 flush_tlb_mm()
 flush_tlb_page()

All these functions disable preemption explicitly, so we can use
smp_processor_id() instead of get_cpu() and put_cpu().

Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Cc: Cliff Wickman <cpw@sgi.com>
LKML-Reference: <4D7EC791.4040003@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/tlb.c