From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (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 626267D063 for ; Thu, 29 Feb 2024 12:12:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709208722; cv=none; b=MQCAiw9u2Rp6btwn+ingmie+pjiakzbaa0ReOl7f6Azn9u27xhbGCCWgfaCT22+lq0fveenHznvV6YEPEclXlGf68Rs0ERrdQPjUXN68ucLjrjW6I5GkXpvrd9mG+uihBVEc5MxXdonplHuLaIb9jHKtMbnSviexuiJQKnj3o3w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709208722; c=relaxed/simple; bh=wwTa8WVdddwZqs8n44/5Bmw0bz7f3NhpD4br/pjBNu8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=YUmeHd9aWTxfPMYxUBMs0O31YHsW9Foj32XCF4aL+wg1vpv4+A+By3ZW12ivJCvqKai5a/y2Rwzsh0V3FvNag/nGZ5+xI7hW3+IsBG685PlmPVA4PX0Ban5r81hYBtCUQ1luIFp0CoaFbKhF/MHbtHYAmKqyck7S/IKObygLzlo= 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=pWnOgRrL; arc=none smtp.client-ip=209.85.128.53 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 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="pWnOgRrL" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-412b5a99204so6020885e9.3 for ; Thu, 29 Feb 2024 04:12:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1709208720; x=1709813520; 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=sQF1yLtoiSlCctJ+RE39C/7ki1uh9viRU9s1V0y1lKc=; b=pWnOgRrLbMWA9ko9HU34VPW6aMd/8vT8w+wdzQXeepHpUGGBFrtqQolfeQBwe/Ttxs RzG92+sZnhZSz3QjnnwFx1d2TI3t8BdbqKEcfouxzZc36KB6YwYwCIEm2y6f+7YDymM5 zTsi+WspyHjyIvOqEIp+roAsd7jph/MvSuSKQbS8DTZ9JmjsXGks4s0kXOzNz8tMSzgg IPe4dFQ9flX3z5B0IfGNNU3COUBU561mdL/ezluibOTD6xlScof8YJrvKGTyBkKhL7GO BEji15qNB+TnIIrU325WWfZcfX/yTa3f6iVH4pEJ94Wuk3NEsQ2Vw8xa769KZxtUk/Jw dfYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709208720; x=1709813520; 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=sQF1yLtoiSlCctJ+RE39C/7ki1uh9viRU9s1V0y1lKc=; b=eQXxWW4+4PMPBw7uBJlViRsOlFfp+uh/pGwCyR0W40gAu7jeKp6MHoFkQ7cYqO4yjB tt24ru1kTjNpibzlR0zbtY+yTzOOfceDiAV/BUppWssSme+X4fDyJm1NNgXw9NhP5KfZ WCqq8uSd7zEpLMeOfm+ugGKz58T3RJ0SmbkbxrMaSC1Zxrf+s66WkimkueT8a0yNel3y xI8BKnXJO9Cy9JGBUssuTDsbCG/ZUnPA5YfcS8h3n96qBmneXSVldzC4aH1H4e/bVo2k 25ww1ptxThULynKLC1U/+8obVbWmpuxiH9Br4VrEgI3aUpf4T3D3z8bMWUpCTApnaMdp UBCQ== X-Forwarded-Encrypted: i=1; AJvYcCXU+wBIybbsN2k2IU9Cp9tyRKGd9xsBxe5PSKDEfsuPip9+OZRCc4HZslPLSUrSFQJ1+zLM0auLmLj64RKRs+OPArPjk6SAEizBshLXSoLA7yFN X-Gm-Message-State: AOJu0YzAwT+lIiplBDXif3/10U22cRSKoIbZfz1T3X54b6jhwv064ZeV HkzHmGMR9pv5gJMB6OWtOUjNnil0Lrv3fQwvRcRa4VguPN5qbE9s4Y6Wtovv7U8= X-Google-Smtp-Source: AGHT+IHfRGAEIEth4r9z2kyk2vnllBD0U8y+Yoxb/4kYE6ynYOIB5eFJyLQx9/3aYLh47mInURi5ig== X-Received: by 2002:a05:600c:4ecd:b0:412:bca4:f23d with SMTP id g13-20020a05600c4ecd00b00412bca4f23dmr1340384wmq.29.1709208719846; Thu, 29 Feb 2024 04:11:59 -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 k40-20020a05600c1ca800b00412b643b5a3sm1922750wms.11.2024.02.29.04.11.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 04:11:59 -0800 (PST) From: Alexandre Ghiti To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Andrea Parri , Samuel Holland , 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 , Andrea Parri Subject: [PATCH v3 1/2] riscv: Remove superfluous smp_mb() Date: Thu, 29 Feb 2024 13:10:55 +0100 Message-Id: <20240229121056.203419-2-alexghiti@rivosinc.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240229121056.203419-1-alexghiti@rivosinc.com> References: <20240229121056.203419-1-alexghiti@rivosinc.com> Precedence: bulk X-Mailing-List: linux-trace-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 Reviewed-by: Andrea Parri --- 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