From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Zijlstra Subject: [RFC][PATCH 12/15] mm, mips: Convert mips to generic tlb Date: Mon, 07 Mar 2011 18:14:02 +0100 Message-ID: <20110307172207.309211374@chello.nl> References: <20110307171350.989666626@chello.nl> Return-path: Content-Disposition: inline; filename=mips-mmu_range.patch Sender: owner-linux-mm@kvack.org To: Thomas Gleixner , Rik van Riel , Ingo Molnar , akpm@linux-foundation.org, Linus Torvalds Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, Benjamin Herrenschmidt , David Miller , Hugh Dickins , Mel Gorman , Nick Piggin , Peter Zijlstra , Russell King , Chris Metcalf , Martin Schwidefsky , Ralf Baechle List-Id: linux-arch.vger.kernel.org Cc: Ralf Baechle Signed-off-by: Peter Zijlstra --- arch/mips/Kconfig | 1 + arch/mips/include/asm/tlb.h | 10 ---------- 2 files changed, 1 insertion(+), 10 deletions(-) Index: linux-2.6/arch/mips/Kconfig =================================================================== --- linux-2.6.orig/arch/mips/Kconfig +++ linux-2.6/arch/mips/Kconfig @@ -22,6 +22,7 @@ config MIPS select HAVE_GENERIC_HARDIRQS select GENERIC_IRQ_PROBE select HAVE_ARCH_JUMP_LABEL + select HAVE_MMU_GATHER_RANGE menu "Machine selection" Index: linux-2.6/arch/mips/include/asm/tlb.h =================================================================== --- linux-2.6.orig/arch/mips/include/asm/tlb.h +++ linux-2.6/arch/mips/include/asm/tlb.h @@ -1,16 +1,6 @@ #ifndef __ASM_TLB_H #define __ASM_TLB_H -/* - * MIPS doesn't need any special per-pte or per-vma handling, except - * we need to flush cache for area to be unmapped. - */ -#define tlb_start_vma(tlb, vma) \ - do { \ - if (!tlb->fullmm) \ - flush_cache_range(vma, vma->vm_start, vma->vm_end); \ - } while (0) -#define tlb_end_vma(tlb, vma) do { } while (0) #define __tlb_remove_tlb_entry(tlb, ptep, address) do { } while (0) #include -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bombadil.infradead.org ([18.85.46.34]:43005 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755252Ab1CGRt2 (ORCPT ); Mon, 7 Mar 2011 12:49:28 -0500 Message-ID: <20110307172207.309211374@chello.nl> Date: Mon, 07 Mar 2011 18:14:02 +0100 From: Peter Zijlstra Subject: [RFC][PATCH 12/15] mm, mips: Convert mips to generic tlb References: <20110307171350.989666626@chello.nl> Content-Disposition: inline; filename=mips-mmu_range.patch Sender: linux-arch-owner@vger.kernel.org List-ID: To: Thomas Gleixner , Rik van Riel , Ingo Molnar , akpm@linux-foundation.org, Linus Torvalds Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, Benjamin Herrenschmidt , David Miller , Hugh Dickins , Mel Gorman , Nick Piggin , Peter Zijlstra , Russell King , Chris Metcalf , Martin Schwidefsky , Ralf Baechle Message-ID: <20110307171402.V_hi1JicFV1cQxufOg6qDl4INOt5AKkAxUzeHfF1C_E@z> Cc: Ralf Baechle Signed-off-by: Peter Zijlstra --- arch/mips/Kconfig | 1 + arch/mips/include/asm/tlb.h | 10 ---------- 2 files changed, 1 insertion(+), 10 deletions(-) Index: linux-2.6/arch/mips/Kconfig =================================================================== --- linux-2.6.orig/arch/mips/Kconfig +++ linux-2.6/arch/mips/Kconfig @@ -22,6 +22,7 @@ config MIPS select HAVE_GENERIC_HARDIRQS select GENERIC_IRQ_PROBE select HAVE_ARCH_JUMP_LABEL + select HAVE_MMU_GATHER_RANGE menu "Machine selection" Index: linux-2.6/arch/mips/include/asm/tlb.h =================================================================== --- linux-2.6.orig/arch/mips/include/asm/tlb.h +++ linux-2.6/arch/mips/include/asm/tlb.h @@ -1,16 +1,6 @@ #ifndef __ASM_TLB_H #define __ASM_TLB_H -/* - * MIPS doesn't need any special per-pte or per-vma handling, except - * we need to flush cache for area to be unmapped. - */ -#define tlb_start_vma(tlb, vma) \ - do { \ - if (!tlb->fullmm) \ - flush_cache_range(vma, vma->vm_start, vma->vm_end); \ - } while (0) -#define tlb_end_vma(tlb, vma) do { } while (0) #define __tlb_remove_tlb_entry(tlb, ptep, address) do { } while (0) #include