Message ID | 20231122010815.3545294-7-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 8D6A8C61DAB for <linux-mm@archiver.kernel.org>; Wed, 22 Nov 2023 01:08:33 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 24EEA6B052B; Tue, 21 Nov 2023 20:08:28 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 0EB886B052C; Tue, 21 Nov 2023 20:08:28 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E7F246B052D; Tue, 21 Nov 2023 20:08:27 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id D43186B052B for <linux-mm@kvack.org>; Tue, 21 Nov 2023 20:08:27 -0500 (EST) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 9BD33160130 for <linux-mm@kvack.org>; Wed, 22 Nov 2023 01:08:27 +0000 (UTC) X-FDA: 81483804654.11.B2440FF Received: from mail-oa1-f45.google.com (mail-oa1-f45.google.com [209.85.160.45]) by imf15.hostedemail.com (Postfix) with ESMTP id CE435A000C for <linux-mm@kvack.org>; Wed, 22 Nov 2023 01:08:25 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=sifive.com header.s=google header.b=mtpOu7ub; spf=pass (imf15.hostedemail.com: domain of samuel.holland@sifive.com designates 209.85.160.45 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=1700615305; 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=4H4CZR2JEm6cTPczZqR2RPpFUWSHUxYeANzgmOkoe1LQOicwg9vAez2Jt45XFOgjWpw9b3 54sfye3uq3XQC7BATi17QPo5oZXlZORg87KaUa0ZX5iR7+ZWGN3Fkoq/MrkElxku+mbUKc pc8whX+5SzpxjSfuwAvkCgtbem57c/A= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1700615305; a=rsa-sha256; cv=none; b=B7z9GiEjlaS/F9oMXo5GLjrwrK2oen4tzLatEmPpoR71hKmd/z0NJ981ISxfS8xGLdoN0l ZZ5kBzBXMufmRk8oX+8ILKk/Sf/T5XCmbAKH8puRG3b1prFrt53Nf5eofAxltCjovIDBWt AE3qBH1pdHLXA8V7tQszie8j8R/3/hU= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=pass header.d=sifive.com header.s=google header.b=mtpOu7ub; spf=pass (imf15.hostedemail.com: domain of samuel.holland@sifive.com designates 209.85.160.45 as permitted sender) smtp.mailfrom=samuel.holland@sifive.com; dmarc=pass (policy=reject) header.from=sifive.com Received: by mail-oa1-f45.google.com with SMTP id 586e51a60fabf-1f938410f92so1553570fac.3 for <linux-mm@kvack.org>; Tue, 21 Nov 2023 17:08:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1700615305; x=1701220105; 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=mtpOu7ub6+Z+r9/pDGuSeP4cLfnJFA0o4mfTzLG4llzK8mBrcDCHvBaqgKamK5tlqh frfDxb4Iuz9A3cukPlbglmbkGYiwDNCvlFFaGuQCQVLueed5baSRornz2SKmaTJjtzP1 AKzZ96ryrc5hF1QISFvI2o+tcS9Z8PcydO6dCBKk+j+bbFq0xnIifEkch8vXUPUme7qt HpQutugIITuf4KeAT2Xw8VL+hkQe/Qb0AHt5EEyl+Epz0X+1UT9x3Wbf7GUJkZ+TQmfq u5asxz5FA6yoJbA1sHuDyCtjApHXJgM0spuwG13gqedIhF6OCnqthbv3J6gnnPmm5pzO bM4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700615305; x=1701220105; 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=i/J8SSg0ou1A+opbuC59xMVcDMX2xI2srIiR+CfmQszGfCzYgNiNjErG1pBqC42tse uNQV+mtszBKmEIvcU5tesTaMrxBFURAUAiSi9qbqJbx5wF9P+cWtokYXDTkQ7yiJ10B4 R9Q49v/+Hr+Q6db+xezgknzvqWetnEJcqKLtfYCsxlhQABsH8eMnc42e5db2JRb7qyQt zD54ywtFDXYej10cnKB6N8LDAKEEL/UdtmG5n11BdhuaGxotXLJfLenfdalDsHOKn6Ik sev0t5/VQR4EvDp08JiXVkB3dPoxK4Q1IJbvkDjAy7EDG/OmgI2cGgpceROG029wfNCn dhGg== X-Gm-Message-State: AOJu0YxMRy0MjO5HGnoJw40GZ9+IK3Ghe2xFDXf0dEwMZsOC8gUQfYUM GbrmekWIRDnlnGGTVIDIxInLQA== X-Google-Smtp-Source: AGHT+IHzY35P/bmGNlxsboL33Yxa5yN9S+7CxJ9PS0wbWCSnN9yRamcO2jnn4/Cd8sidyrAKu3XrJw== X-Received: by 2002:a05:6870:9b0c:b0:1f5:b5ca:435e with SMTP id hq12-20020a0568709b0c00b001f5b5ca435emr1104182oab.52.1700615304951; Tue, 21 Nov 2023 17:08:24 -0800 (PST) Received: from sw06.internal.sifive.com ([4.53.31.132]) by smtp.gmail.com with ESMTPSA id bn5-20020a056a00324500b006be047268d5sm8713961pfb.174.2023.11.21.17.08.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 17:08:24 -0800 (PST) From: Samuel Holland <samuel.holland@sifive.com> To: Palmer Dabbelt <palmer@dabbelt.com>, linux-riscv@lists.infradead.org Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Alexandre Ghiti <alexghiti@rivosinc.com>, Samuel Holland <samuel.holland@sifive.com> Subject: [PATCH v3 6/8] riscv: mm: Make asid_bits a local variable Date: Tue, 21 Nov 2023 17:07:17 -0800 Message-ID: <20231122010815.3545294-7-samuel.holland@sifive.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231122010815.3545294-1-samuel.holland@sifive.com> References: <20231122010815.3545294-1-samuel.holland@sifive.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: CE435A000C X-Rspam-User: X-Stat-Signature: 7rqc5y9ryommesnfwwd4rwfqobczajr4 X-Rspamd-Server: rspam03 X-HE-Tag: 1700615305-238755 X-HE-Meta: U2FsdGVkX19owbEmWpjrNWz9jwgw0bAU/r4BNnN7c2if3LyF7ODAP5ooWPLRxiR19/bLlfMZWKhwZW2Dw+Kzk0rJkFg/Cdz318I7RvaKH4h7I0CVyhkqAWuB/lZ5f5T0N9LOK51CVAYWskpGPLSEiKsTwBwDgV2PJOwdBzq4FJRUbLS/EIeR5nyqUm2CAZaGoq8Lf6tHj1apyehP2zK/0MB6Wpq1I+2AF+s0wMKeH4f29bx1apbsexa7PEWVNcNBGVXwrUKJAFVHeLSGygNQA4j2psZ2YuczlfDaB8Sn1bmzoUJzvevNb7LPNnrWZY++TEw9U6vqBR+vRgXuH0HcumKJ1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QC8rAocJbtNm5tlXXNsxQrI X-Bogosity: Ham, tests=bogofilter, spamicity=0.003389, 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(-)