Received: by 2002:a05:7208:13ca:b0:7f:395a:35b6 with SMTP id r10csp38951rbe; Wed, 28 Feb 2024 09:53:14 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV7gi7+dTXRXlHcj2sKs2bfYUpihfRRVOpuoPwOlXVax9oNYNwg64aZ6V5KNMTmee9RBMKRNI76kYgaXghP3Yj2jStLBd5edA0AIiARLA== X-Google-Smtp-Source: AGHT+IHUjHReVFQqPVnKHL6tlLEXgeQK8uJBq67sJfJPn3MWpJdc1lLRHvMoHIaUo5zCOk1ZADvZ X-Received: by 2002:a05:6e02:130f:b0:365:3a69:1e1a with SMTP id g15-20020a056e02130f00b003653a691e1amr6004ilr.0.1709142793808; Wed, 28 Feb 2024 09:53:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709142793; cv=pass; d=google.com; s=arc-20160816; b=BHEvl+d+1CrIsW9JCowOhp8XUfQx/C0wjfru0bem4/03PxQ9aaEB6V2qm0oHWAnqfN Z2B18ezSPodG8HveQDHmbnkrqHBOaWKKwb02gjSXJCAwb6ok5lKF4EMJV7gmCNTP40nO w4NG7bfptOfK4F4RyUK9DQbS5sNk+KWlLLFCUXMgpqD38Yj9bN8k8gmF3PsMb1qUk2Ey 5kR2R+M7AZMb9p4HcMc38HhnT+4RyBfl5gRhT9GS4QCgE3K1Mo2AHk3175KchZnvozUT xx1ZQlyBlzWI+QnwzXP7luca5WrNAerXu6jwT6ufbisCEpt1cYCfRA50yR/xTV/M930Z UemQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=wN06uTemIfMB8SobqPuytHQ6Es/YWPqVM45xDKN/b1w=; fh=+JD7kpcVaSN3nG/5iK69AHA3qODSraeofp4OyqREAjE=; b=A4iznGWJHXonQLvCOSDYNsopgVzkoAydOdqOsOX6hfCBiZEAGeoYB2S3e+WTi6KlGG GCns8d0rHV0BArFU/b8IxF4v9+qJWspmwZ9xRV6gQAm6Yirr/rIrHFZkWK8lBWQ7rOhK F6Pv8SYpm9QJOK4/cPIlaT6KdFp14FJbC8L35l0r+WqJbghv7v1MJB0PQ5Nn7AsQuN3T hwyCpi7rahmlBRbjHtM3X1RIA+2Gf8FxG9G7/Vr0eUrZFFXD7jQUS78iNgc7XWLwl8np axF3f3LFJsUCZ0XdOXpNb+6oXr3RT+vunPzWk6JQXTS9gzwAf8BbgqxvRlt3IB9SPSXt +aQQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=Qhfm7L8k; arc=pass (i=1 spf=pass spfdomain=rivosinc.com dkim=pass dkdomain=rivosinc-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-85468-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85468-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id fc29-20020a056a002e1d00b006e54ebd079dsi3088826pfb.54.2024.02.28.09.53.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 09:53:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85468-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=Qhfm7L8k; arc=pass (i=1 spf=pass spfdomain=rivosinc.com dkim=pass dkdomain=rivosinc-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-85468-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85468-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 0848E287F77 for ; Wed, 28 Feb 2024 17:53:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B6F9915E5B1; Wed, 28 Feb 2024 17:52:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b="Qhfm7L8k" Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 423FB159573 for ; Wed, 28 Feb 2024 17:52:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709142778; cv=none; b=gUySG4dFsZx6lnoqyKlwxNezoBfhzmeKqf2TvNLEyIP4EmXtgOHHrNofc9OybOnHDP0IQX8z69OgHluzzj424fQ9caZwjJn6ellvdBHRpwDZz4QLhpB12E2oxhVbKLMHrCGlVfCrb/6rZVZob7qC3l55Q4nmJ1chRuo7vySjT/k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709142778; c=relaxed/simple; bh=VvQb+BMTgSSey78SvDrMJm/73S7iPwz7W6A4Lzu8+18=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=A9+hd3wruedbajfmmRd+YJCW8UmhXuPyNjy8TqkwP/45nYbPJnqLayYTyHR3aLvS+anO3Vajnlfr39eQA0ucMV3z3j3uK2b6kQDk9ZC3jXMXmSxv6I2GHd/PBiCnTVXYpzbezuLjx7wGoM/Z5KUQFkAXBv5Pcgj01tm4+xEnC+I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com; spf=pass smtp.mailfrom=rivosinc.com; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b=Qhfm7L8k; arc=none smtp.client-ip=209.85.208.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rivosinc.com Received: by mail-lj1-f178.google.com with SMTP id 38308e7fff4ca-2d275e63590so71358971fa.2 for ; Wed, 28 Feb 2024 09:52:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1709142775; x=1709747575; darn=vger.kernel.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=wN06uTemIfMB8SobqPuytHQ6Es/YWPqVM45xDKN/b1w=; b=Qhfm7L8kikplC47Nz/45oGAlXdkET9KCUglJpFm9sHkUPfQPlbtjWfIQGWSXHoLGgU BSWiGte/EPNeUIm+dTONcD/j0hKlI99iJmEHaRSJ/sgRbWVBrCHqrs8xY8wnV7jCCkVu 1mZigIRXqwyCkNlWXrL9nzAEB0Yp90ILOO+Y7Pl7Txnb3M0u86SRA4KyozDVc2LvlEeR AiYqz/q659BMo7dY3nFjcFnTYXi7Oi8heY1gcpdK8ytWJchD+KFE9FpKbJMyQu3e0jX4 4ZZt99RLcx6qCt3kBJydw/2ZVRCenoe0NgvfnSt4L4RpXmbqxSgFfHeCWgOyZCa+enGo LDXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709142775; x=1709747575; 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=wN06uTemIfMB8SobqPuytHQ6Es/YWPqVM45xDKN/b1w=; b=fT1dxUKILpfWwBQkmKOxKQHx9NW1btPrzJq+lBN0wl2nwzY0CWgOmLquore6Y3mu2D Z6pIFWqwAk31QyP26EgYkrVoVgwLxCAms683zP4wgK/1VyYSsiaU9xfMDKp1IfnzUdlu 0pgYsns82V5qJPpH+aw8OScx4PplprLpaHzQSZHSCREUc5FvYPrFivWKEfIhOzbjCC2R QavjLlZUFlmwObY7nkK2UgwyFGM3PoYrjWbkKq2EIW5/EZ3wGYBfSNDfuiydamaMNbri EuVfU6JR3fV6yedX1WrT+oDtzCwW75V+l6r86D6XbuY1dZ5Ee9e2CEgvKjbt9+OLPqK0 ciug== X-Forwarded-Encrypted: i=1; AJvYcCXKjzCUF8eDnPTsnByM6Rr/YX+l8S8ztSbtgG/ygW++l6oqvxI5yfVjAFqXUk8Nfa9LGIAL7fTgzw5lvfz5N0eYZ3H/Weq/0v6BGKPj X-Gm-Message-State: AOJu0Yyu0KK5gZVvbLHKFxvM6CywKbLbGUwbdpC6aV5VtROVKIQLBhGz ZPGNlETidc5bW2j2zCL6aekKlQ8j2ICxfskayq8WuMCHJeZFRJfje0UNq7Ab/b8= X-Received: by 2002:a2e:a545:0:b0:2d2:d58b:652a with SMTP id e5-20020a2ea545000000b002d2d58b652amr1724531ljn.21.1709142775497; Wed, 28 Feb 2024 09:52:55 -0800 (PST) Received: from alex-rivos.ba.rivosinc.com (amontpellier-656-1-456-62.w92-145.abo.wanadoo.fr. [92.145.124.62]) by smtp.gmail.com with ESMTPSA id ch12-20020a5d5d0c000000b0033dabeacab2sm15500222wrb.39.2024.02.28.09.52.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 09:52:55 -0800 (PST) From: Alexandre Ghiti To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Andrea Parri , Anup Patel , Steven Rostedt , Masami Hiramatsu , Mark Rutland , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org Cc: Alexandre Ghiti Subject: [PATCH 1/2] riscv: Remove superfluous smp_mb() Date: Wed, 28 Feb 2024 18:51:48 +0100 Message-Id: <20240228175149.162646-2-alexghiti@rivosinc.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240228175149.162646-1-alexghiti@rivosinc.com> References: <20240228175149.162646-1-alexghiti@rivosinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This memory barrier is not needed and not documented so simply remove it. Suggested-by: Andrea Parri Signed-off-by: Alexandre Ghiti --- arch/riscv/kernel/patch.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/riscv/kernel/patch.c b/arch/riscv/kernel/patch.c index 37e87fdcf6a0..0b5c16dfe3f4 100644 --- a/arch/riscv/kernel/patch.c +++ b/arch/riscv/kernel/patch.c @@ -239,7 +239,6 @@ static int patch_text_cb(void *data) } else { while (atomic_read(&patch->cpu_count) <= num_online_cpus()) cpu_relax(); - smp_mb(); } return ret; -- 2.39.2