Message ID | 168690612426.404.7374086470513389742.tip-bot2@tip-bot2 |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1195517vqr; Fri, 16 Jun 2023 02:26:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5LMiEspH6pYGFnj+egoCwGgrEkCwilGlVdy6wo9tYAr8fdtRVkWNFYboToZvDOi0999UNE X-Received: by 2002:a17:902:da87:b0:1b5:1475:2efb with SMTP id j7-20020a170902da8700b001b514752efbmr1358282plx.5.1686907568834; Fri, 16 Jun 2023 02:26:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686907568; cv=none; d=google.com; s=arc-20160816; b=ruVHseMjOIhm/4THBYnvSuFjesneuIov58ItdkN7+43t642eAdOahNuWBihLs1qCS5 yXlbaaSZZt69GLf6dSDceTWDraYOwn20YYtUH1G0qgl8HXngPVeaQCil7fdxYOtpDVAP BsiaUr0TH3OMgPSvKMcZSP2qfEn5pHxbGTn/zEhg2U5ng2u20wy7ecUtCCy6+GlWZlck 45M6hHtk8ao1JO5HNJR9PZRGwfxhjkfLwOhf/dXBaXN+ACiSECOLPQ3f+qSAyBId1nmB fCZ7bHEVsvnK5jWTUhlEl819iqwepMtOd+K+ucD8NLHoF0ug7jeQ+rX42FvX1UvGROnb h2Sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=LU49bcez6wCr9PSZlpeTSPyjPXkpp4vHnRF+CbyLaVs=; b=cknMV8k93wr/uyFx4s21hrfccbckDiA+UwOp0H9V6IIXL/yUj16FvPVlF85U+jrUjg SPpDiImYY7Ju6OtiMmA+/joPB3ATjETlndQcAykM2nCyCKkP6+FNgDpDU3/r0glvtswg CEbOrMx/alHcSudX1KCC4NudEYatw5j6eBqOO4dnSjm0g4j4aawS3u6ogo5k84KrGPa7 8HvOL83mVCIdeidvzco3xmGsLA6uRxvv9vxzugBg8yySq7VvvVPbDM+NE5VCzSlSmt4s Wuop51SgEDQtT9P5lRoJ4l51ANsBR8fyyH40IQQfz2xRcHq+fkR6Ri244vK6RUzTsjO1 SozQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=PByfvvvN; dkim=neutral (no key) header.i=@linutronix.de header.b="KbRFM+a/"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k3-20020a170902c40300b001a961bfe4b7si7523782plk.362.2023.06.16.02.25.54; Fri, 16 Jun 2023 02:26:08 -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=@linutronix.de header.s=2020 header.b=PByfvvvN; dkim=neutral (no key) header.i=@linutronix.de header.b="KbRFM+a/"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241136AbjFPJEg (ORCPT <rfc822;maxin.john@gmail.com> + 99 others); Fri, 16 Jun 2023 05:04:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230226AbjFPJD7 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 16 Jun 2023 05:03:59 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF1EB44A2; Fri, 16 Jun 2023 02:02:09 -0700 (PDT) Date: Fri, 16 Jun 2023 09:02:04 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1686906125; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LU49bcez6wCr9PSZlpeTSPyjPXkpp4vHnRF+CbyLaVs=; b=PByfvvvN4HXfCOQ6mZnz0kEFZQYrXe3M+ugt4TunMxUTjVhrMuNRad9HeQgFAqMg9lHZ+y MJL+NItG+z2tqMKQb+qes8zshqsRq+VoJuzDrv6XpcNYKkt25ioHmFhejoweSIt45OUpPQ fso5i/6e71PFRb5EFsCvK2TPN7f3lDRwT1QrSpyXez8N1RpgATelZ/sXh/1KpwD0QrTbQ+ onUVlYzEZe+lZ44e7PhXoMhPfzGoq3LaW6PUIvBGvXtTLkitBwHj2XCxX7Vsbb/DDRNZvY 59D75qC2d2669xzyIR7xUcjOXDtdkAVcao1AXk/4+9raA/qTkh/3u5HE/GCRPQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1686906125; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LU49bcez6wCr9PSZlpeTSPyjPXkpp4vHnRF+CbyLaVs=; b=KbRFM+a/3AV9oGdWV0/oSkWExaEZLhFJq5TnmJTmVamxUp3pao3maS2CmXQBkxKPTsgU0W 9gxAsJiaTDH+UUBQ== From: "tip-bot2 for Borislav Petkov (AMD)" <tip-bot2@linutronix.de> Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/cleanups] x86/mm: Remove unused current_untag_mask() Cc: "Borislav Petkov (AMD)" <bp@alien8.de>, "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>, x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230614174148.5439-1-bp@alien8.de> References: <20230614174148.5439-1-bp@alien8.de> MIME-Version: 1.0 Message-ID: <168690612426.404.7374086470513389742.tip-bot2@tip-bot2> Robot-ID: <tip-bot2@linutronix.de> Robot-Unsubscribe: Contact <mailto:tglx@linutronix.de> to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768701541692966005?= X-GMAIL-MSGID: =?utf-8?q?1768850791012429482?= |
Series |
[tip:,x86/cleanups] x86/mm: Remove unused current_untag_mask()
|
|
Commit Message
tip-bot2 for Thomas Gleixner
June 16, 2023, 9:02 a.m. UTC
The following commit has been merged into the x86/cleanups branch of tip: Commit-ID: 013fdeb07a8fd32bbb3412e5f49d60207a78bf08 Gitweb: https://git.kernel.org/tip/013fdeb07a8fd32bbb3412e5f49d60207a78bf08 Author: Borislav Petkov (AMD) <bp@alien8.de> AuthorDate: Wed, 14 Jun 2023 19:41:48 +02:00 Committer: Borislav Petkov (AMD) <bp@alien8.de> CommitterDate: Fri, 16 Jun 2023 10:50:16 +02:00 x86/mm: Remove unused current_untag_mask() e0bddc19ba95 ("x86/mm: Reduce untagged_addr() overhead for systems without LAM") removed its only usage site so drop it. Move the tlbstate_untag_mask up in the header and drop the ugly ifdeffery as the unused declaration should be properly discarded. Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Link: https://lore.kernel.org/r/20230614174148.5439-1-bp@alien8.de --- arch/x86/include/asm/tlbflush.h | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-)
diff --git a/arch/x86/include/asm/tlbflush.h b/arch/x86/include/asm/tlbflush.h index 75bfaa4..80450e1 100644 --- a/arch/x86/include/asm/tlbflush.h +++ b/arch/x86/include/asm/tlbflush.h @@ -14,6 +14,8 @@ #include <asm/processor-flags.h> #include <asm/pgtable.h> +DECLARE_PER_CPU(u64, tlbstate_untag_mask); + void __flush_tlb_all(void); #define TLB_FLUSH_ALL -1UL @@ -54,15 +56,6 @@ static inline void cr4_clear_bits(unsigned long mask) local_irq_restore(flags); } -#ifdef CONFIG_ADDRESS_MASKING -DECLARE_PER_CPU(u64, tlbstate_untag_mask); - -static inline u64 current_untag_mask(void) -{ - return this_cpu_read(tlbstate_untag_mask); -} -#endif - #ifndef MODULE /* * 6 because 6 should be plenty and struct tlb_state will fit in two cache