From: Hugh Dickins Date: Thu, 17 May 2007 05:11:18 +0000 (-0700) Subject: i386: don't check_pgt_cache in flush_tlb_mm X-Git-Tag: v3.12-rc1~29468 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bb49b32fece7910fbb02a6934bca4495596f6c8c;p=kernel%2Fkernel-generic.git i386: don't check_pgt_cache in flush_tlb_mm No other architecture calls check_pgt_cache() from within flush_tlb_mm(), and i386 is already calling check_pgt_cache() from the usual places, tlb_finish_mmu() and cpu_idle() (the latter being odd, but not unusual). flush_tlb_mm() has no business to be freeing pages: remove that line, which sneaked in with slub's i386 support. Signed-off-by: Hugh Dickins Cc: Andi Kleen Acked-by: Christoph Lameter Acked-by: William Lee Irwin III Cc: David Miller Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/i386/kernel/smp.c b/arch/i386/kernel/smp.c index c9a7c98..6299c08 100644 --- a/arch/i386/kernel/smp.c +++ b/arch/i386/kernel/smp.c @@ -421,7 +421,7 @@ void flush_tlb_mm (struct mm_struct * mm) } if (!cpus_empty(cpu_mask)) flush_tlb_others(cpu_mask, mm, TLB_FLUSH_ALL); - check_pgt_cache(); + preempt_enable(); }