Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp179115imw; Fri, 8 Jul 2022 00:24:10 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uMQWq+sF76DxOGwU9Q2tanswStPt1E8VXOnP4cNHaXwf/eSUC+BNXJBKu7Qsm4kqVHdNo6 X-Received: by 2002:a05:6402:4517:b0:43a:444d:a65a with SMTP id ez23-20020a056402451700b0043a444da65amr2861491edb.59.1657265049944; Fri, 08 Jul 2022 00:24:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657265049; cv=none; d=google.com; s=arc-20160816; b=yqFMNDUwki5iVe4auDIUfjQqxc+MNUm3pTpTrcw4/yz8CC1u2K67gCtzKPPxqbeYsY B3yLEakbvZVzaNHZL9nnCv7QREt4DH+mqAaHRiYgcVAGtY6HKrr4JNuhBZT/gQBiEwR6 EUtwBXRHQda0UxLNCtgTdptzLRERUAc1gIPvdPUMPNukn7hZejpxFdoO/sA8q298FYWx OoYO8cTPJtFEFexQvkxqsgtJPTrlLYzvNmqRgcuZxtMnwkc1pYsURw2Q73z62CK9OBzg +EQ6QvMZgTQE42sSdXjY4PXaXOU49zYROD7DRdxLf57ibhIWjlv/HkHrYs9ctVa4wanB AwNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:subject:cc:to:from:date :user-agent:message-id:dkim-signature; bh=1nMVtjbiz/Yr0AEPB448TuEkWvIWnr9bl4+XJj3PWUA=; b=jtP7bnINBY3f28xxyTun8LeMYyuEG9oWArn91xo/mhzt0bUfuFR5tcSVT1/UIbkT3S QQLpj+plPONASMp1BunM6Nzsbq2VYaqzy56vDhmTSCDGW3xx7pnpOdroruspsJnV6bhg j/9zxMqQbgqKmXMJbdQgSrdpNb1k5UoCsnxU2Pw8MFbo0gtyP9MnwPp5fMQIVcUA9vH6 W1dlYkfR8a/+K+krcdv8+FmZ2G0kVEmLeaoUl2fL8IR1nfCAnFW6MBmOldTe6P31TfkF v/j5WkFsT9FK4hubMdQn7D0tbJR/ymVxwlbwbdOCftpE3sU6i+QavEVxccpLYtJuWaKr q6Kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=XbPaMQfE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cr20-20020a170906d55400b007262b36f3e6si4916166ejc.772.2022.07.08.00.23.44; Fri, 08 Jul 2022 00:24:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=XbPaMQfE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237495AbiGHHUM (ORCPT + 99 others); Fri, 8 Jul 2022 03:20:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237298AbiGHHUJ (ORCPT ); Fri, 8 Jul 2022 03:20:09 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A2C27B353 for ; Fri, 8 Jul 2022 00:20:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Type:MIME-Version:References: Subject:Cc:To:From:Date:Message-ID:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:In-Reply-To; bh=1nMVtjbiz/Yr0AEPB448TuEkWvIWnr9bl4+XJj3PWUA=; b=XbPaMQfEK7hyBIb2ys5XBSSvis GrANZnvChoPdcGug7ovsXTWFQjDUP1LfWfTkQ6IJzOo64nT2gCVxaj/dza/3PDBxt1DKBohWixoaO rXGztRuYtoJH6KtF1EQvcjnChvWeFpst+dv2AjlxEDGMaLOaM22DCf7hWWHF+5FAgde8ijpwMvMZ6 9ixlRQdej4IfvSszvy2AIag+yAZXJ0G5WBkOXAQbHa5BT5JsLg/T5+bdYduoxbuFdhynZdY0Jaw+q pAOUrrnixReggIuSaaYi4sEoRhZcsLPPBIG649nKVpSRBU+63Z5kYCyw+QNYMaTAuZ/qdyazhzRNm I2YC2IHQ==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1o9iHK-003Igs-12; Fri, 08 Jul 2022 07:19:54 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id B6FDA300E7E; Fri, 8 Jul 2022 09:19:51 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 0) id 4FE48203C0435; Fri, 8 Jul 2022 09:19:51 +0200 (CEST) Message-ID: <20220708071834.019084831@infradead.org> User-Agent: quilt/0.66 Date: Fri, 08 Jul 2022 09:18:04 +0200 From: Peter Zijlstra To: Jann Horn , Linus Torvalds , Will Deacon Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, peterz@infradead.org, Dave Airlie , Daniel Vetter , Andrew Morton , Guo Ren , David Miller Subject: [PATCH 2/4] csky/tlb: Remove tlb_flush() define References: <20220708071802.751003711@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The previous patch removed the tlb_flush_end() implementation which used tlb_flush_range(). This means: - csky did double invalidates, a range invalidate per vma and a full invalidate at the end - csky actually has range invalidates and as such the generic tlb_flush implementation is more efficient for it. Signed-off-by: Peter Zijlstra (Intel) --- arch/csky/include/asm/tlb.h | 2 -- 1 file changed, 2 deletions(-) --- a/arch/csky/include/asm/tlb.h +++ b/arch/csky/include/asm/tlb.h @@ -4,8 +4,6 @@ #define __ASM_CSKY_TLB_H #include -#define tlb_flush(tlb) flush_tlb_mm((tlb)->mm) - #include #endif /* __ASM_CSKY_TLB_H */