Message ID | 20231028231339.3116618-10-samuel.holland@sifive.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 06B2CC001B0 for <linux-mm@archiver.kernel.org>; Sat, 28 Oct 2023 23:14:08 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2F24A6B02DF; Sat, 28 Oct 2023 19:13:57 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 27E896B02E2; Sat, 28 Oct 2023 19:13:57 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 03DE36B02E3; Sat, 28 Oct 2023 19:13:56 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id DE9786B02DF for <linux-mm@kvack.org>; Sat, 28 Oct 2023 19:13:56 -0400 (EDT) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id BE6B31605CA for <linux-mm@kvack.org>; Sat, 28 Oct 2023 23:13:56 +0000 (UTC) X-FDA: 81396424872.08.931C92E Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) by imf16.hostedemail.com (Postfix) with ESMTP id 08B43180006 for <linux-mm@kvack.org>; Sat, 28 Oct 2023 23:13:54 +0000 (UTC) Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=sifive.com header.s=google header.b=Obw8PH1F; spf=pass (imf16.hostedemail.com: domain of samuel.holland@sifive.com designates 209.85.214.177 as permitted sender) smtp.mailfrom=samuel.holland@sifive.com; dmarc=pass (policy=reject) header.from=sifive.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1698534835; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=O8uQuAx5HbeGrqX4Ip/qQY7nv6lrxw4qacCJFbpKbko=; b=7Me4z8gPQOOpyYHwgfTNMOATdjnxynjEEyHm1yT6sQO2gePhZnGFw7tmPjKLsg9C9bWZ64 kLZnAeu9sFv/JlZoLA7yBM7OXrfdbmT3Z5VRPFtcWzDh2uVubCGg9J0mY6QE+VKlSoQicU uxoXWkzkWUjKi5eVnTEA1v/xbU37tDo= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1698534835; a=rsa-sha256; cv=none; b=beXh14ak5g4jOsiGSwy12WZKQusC/EfkqV+jDegVPF3F/9xGxJIEDzG7bmVHnkQhqPQvGF OTqgfH7G15HiaS25UnPL/bGKC6d6Juc0fmYMmZG2BuD2TaQNlvvcQDOgaqXyIfhsZz69RE vjGL0SB8KTARIm570zFZrKWv3d4ZEuo= ARC-Authentication-Results: i=1; imf16.hostedemail.com; dkim=pass header.d=sifive.com header.s=google header.b=Obw8PH1F; spf=pass (imf16.hostedemail.com: domain of samuel.holland@sifive.com designates 209.85.214.177 as permitted sender) smtp.mailfrom=samuel.holland@sifive.com; dmarc=pass (policy=reject) header.from=sifive.com Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-1c5cd27b1acso29402315ad.2 for <linux-mm@kvack.org>; Sat, 28 Oct 2023 16:13:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1698534834; x=1699139634; darn=kvack.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=O8uQuAx5HbeGrqX4Ip/qQY7nv6lrxw4qacCJFbpKbko=; b=Obw8PH1FPrb745h1whuW05m2BPrRuyEq14zfE9nqvOpcTspXX98QUQBkcF6jn8RiWx URjLzpxOzOrZ8im4ct8csYz0mHFSW6WOBgNkEZnloEyzvKIbnY8rqQqmPvHIA//g1z6p rT8lzZWRi1Rsl3AXGK69IP/B4VnU+IGpw5hT+XhRfQUXnyxqeqvIcomx60AsSbpJXOhD IkND5HCK5Kn5GAFaDYXJvmkYmhsY38dMj1tNTGNnTCMfF9u5NaGzz2Khy7myPTPc98IZ hcomvQKyjhOUKNgfepRxVMQTq4wCKyZ2z54b0gcHY8YYPVlOe8UUK5fruJtB1PBlwkxE TtJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698534834; x=1699139634; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=O8uQuAx5HbeGrqX4Ip/qQY7nv6lrxw4qacCJFbpKbko=; b=vYizqxbt1n4gUSdseR7Ty5Ghnx1jNAfnyUTT77QEF7Gpu9LK/+GIeHfGxCApXg6+l6 iXuUoXavGgoRY3TAuCv29/SjM/4PjncxKVoOGOJuBvkrqCPrj/ieYYLU/jY7h01HT9f/ vF6iyAGiCEGcxqlhGpxvtfvSmgGKDl0FgiidvfZK8FOaLhrneBhVaaqMJjr5M76Mtgx9 +ThoEGlmOnTH1aEdvUWx5vY8RbwqcJkAhyq07VFbVpWL2gDgqh8T1ppxt4zloOrePlJN ZBq2fLES7/oIAjKQtdLu5RTbZLrU+/P3rHlotD2pMRGm+7I3Yrbksav8QDxdVKJv8jfb QErg== X-Gm-Message-State: AOJu0Yz27L4KmsbjakJaV0R6OFAgnAKUneMsIqr+nVhi8rzOW78izAsO EcgIcBYuFn8MY8nlZQ+wpdWvsg== X-Google-Smtp-Source: AGHT+IEXxDKHTizsqyBXjr5oqt/mWPSp5qFgTjueov73uPEcJh4MjB79gaQaqVj5Le1ZHH1qO9h3pA== X-Received: by 2002:a17:902:c751:b0:1cc:29ef:df7d with SMTP id q17-20020a170902c75100b001cc29efdf7dmr3951181plq.65.1698534834011; Sat, 28 Oct 2023 16:13:54 -0700 (PDT) Received: from sw06.internal.sifive.com ([4.53.31.132]) by smtp.gmail.com with ESMTPSA id u17-20020a17090341d100b001b8622c1ad2sm3679345ple.130.2023.10.28.16.13.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Oct 2023 16:13:53 -0700 (PDT) From: Samuel Holland <samuel.holland@sifive.com> To: Palmer Dabbelt <palmer@dabbelt.com>, Alexandre Ghiti <alexghiti@rivosinc.com>, linux-riscv@lists.infradead.org Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Samuel Holland <samuel.holland@sifive.com> Subject: [PATCH v2 09/11] riscv: mm: Make asid_bits a local variable Date: Sat, 28 Oct 2023 16:12:07 -0700 Message-ID: <20231028231339.3116618-10-samuel.holland@sifive.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231028231339.3116618-1-samuel.holland@sifive.com> References: <20231028231339.3116618-1-samuel.holland@sifive.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 08B43180006 X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: 764q87ngc5z15ujbzkjbpb7ooehryqar X-HE-Tag: 1698534834-284883 X-HE-Meta: U2FsdGVkX18dD/Ar6QSFXMUc0vVB8FEG43Ec83Tgum0QyeXlhtKp9uldp9+zqul7j52Ge8nyFvOx4mggt6s8Mxmbwpchen7bA3tHQdTjyI2WsPaqZdzET94awBQXJtDnHfdBsJE39FJEL8z0Ahd0atvWewdj1YWbyG4Hb5Jnb0f3agRChWEbnYGmslwoXKOjlrr28jyZ+L5Q9jlMftijlHBw2RF6WAngEd7sgrm81QVL2c2nuoFN4ogetcX2XHRQFi0r+oncaXOqCetYIv+ib2amvjOcCGh8W3V96pIxDRTkc79nHBe/6WloiSPFic3f0EaDMBN2k7yfXr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GY+XANwRQxjVoRDNsHLAiuhfNF4vE X-Bogosity: Ham, tests=bogofilter, spamicity=0.000037, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
riscv: ASID-related and UP-related TLB flush enhancements
|
expand
|
diff --git a/arch/riscv/mm/context.c b/arch/riscv/mm/context.c index b5170ac1b742..43a8bc2d5af4 100644 --- a/arch/riscv/mm/context.c +++ b/arch/riscv/mm/context.c @@ -20,7 +20,6 @@ DEFINE_STATIC_KEY_FALSE(use_asid_allocator); -static unsigned long asid_bits; static unsigned long num_asids; static atomic_long_t current_version; @@ -226,7 +225,7 @@ static inline void set_mm(struct mm_struct *prev, static int __init asids_init(void) { - unsigned long old; + unsigned long asid_bits, old; /* Figure-out number of ASID bits in HW */ old = csr_read(CSR_SATP);
This variable is only used inside asids_init(). Signed-off-by: Samuel Holland <samuel.holland@sifive.com> --- (no changes since v1) arch/riscv/mm/context.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)