Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751674AbbGKUZc (ORCPT ); Sat, 11 Jul 2015 16:25:32 -0400 Received: from mail-ie0-f171.google.com ([209.85.223.171]:35841 "EHLO mail-ie0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751419AbbGKUZ3 (ORCPT ); Sat, 11 Jul 2015 16:25:29 -0400 From: David Daney To: linux-arm-kernel@lists.infradead.org, Catalin Marinas , Will Deacon Cc: linux-kernel@vger.kernel.org, Robert Richter , Andrew Morton , David Daney Subject: [PATCH 1/3] arm64, mm: Add flush_tlb_all_local() function. Date: Sat, 11 Jul 2015 13:25:21 -0700 Message-Id: <1436646323-10527-2-git-send-email-ddaney.cavm@gmail.com> X-Mailer: git-send-email 1.7.11.7 In-Reply-To: <1436646323-10527-1-git-send-email-ddaney.cavm@gmail.com> References: <1436646323-10527-1-git-send-email-ddaney.cavm@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 981 Lines: 35 From: David Daney To be used in follow-on patch. Signed-off-by: David Daney --- arch/arm64/include/asm/tlbflush.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/include/asm/tlbflush.h b/arch/arm64/include/asm/tlbflush.h index 934815d..42c09ec 100644 --- a/arch/arm64/include/asm/tlbflush.h +++ b/arch/arm64/include/asm/tlbflush.h @@ -105,6 +105,13 @@ static inline void __flush_tlb_range(struct vm_area_struct *vma, dsb(ish); } +static inline void flush_tlb_all_local(void) +{ + dsb(ishst); + asm("tlbi vmalle1"); + isb(); +} + static inline void __flush_tlb_kernel_range(unsigned long start, unsigned long end) { unsigned long addr; -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/