Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2932877lqo; Tue, 21 May 2024 01:22:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW7+3FmtBj3SmxNzGDHVG6o4064SDKoAk0DBl1Dkhr3lyGhWCtbnqLJLGSIXiLgz6yv1VGU1Rui/QPOhmVUHfS3yzNKTXHJErMkc3NGzw== X-Google-Smtp-Source: AGHT+IGrn9K5p4OCs53pkg6+3QiHSBva1FjBPx8SqTUKeTLVJQ2irT0m91WMQMuVRlIcHU2apA9V X-Received: by 2002:a17:902:d543:b0:1f3:a6f:9de2 with SMTP id d9443c01a7336-1f30a6fa0b4mr33878135ad.50.1716279760178; Tue, 21 May 2024 01:22:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716279760; cv=pass; d=google.com; s=arc-20160816; b=B2CIlSQBDYQpqZ9KyRBUHugSWYKUN5RZatVtAhG08quEZhbr4vuhMiLTfQuS53WZhf XYyM2gYWgZsHzseuXqOetF8FvosFZWX0K+DkrtHNGZEu8dPiZ0im0+QaFadzAXVFAy0A ADTPk3YZY4WjXJqjJ5d2siHtXrVO1rseJJS6H7BdLkxVitldPQHu8x5Sg8Eoo0sJl2Pg ia5FEjL6ShvyTsvw7nw0AiqOITClVB1AgpFlPTmjClbGmRHKZmoWbXvxEGW+E/wVcoIT 9ag31ZNK2UBVw6auBeoYw2NvexpfgBmImzUC0m2Vwrug5D97DzM8whwphGlI7Yq8eRuS Yhlw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=uMv8kqcqNwxHCGusjyVyQBedIyoLP2alQ916eSqbmNM=; fh=LFzeYgb0ex3z8fytjE8glOGl8UR5Le6kyQY6lwbIcLs=; b=Ly2hnnnry6MtSQnVmEtUu4gS0en8FREpbY/FZsFfgniET0r0CXEKnE7y/5EUdP9JT1 lRazVbkarBFlkqjdTjWUSHJ9UVVEQjhyiR8e8V7OSH8FYRiZo3qwEY9EkrF3xD8OZCPy at7TzkrXDMP+HlIUc/8Kxw4d6/UJnfaMKlctso03sDBK4RTPd7r2fNd+K/M3bMDLy8ZV Pf4NzDQ8DdytShZeG47QphAi0Op2zbB7AeTbHdzN9XMoa1QVIcyDLAj9Bt/3e88hR39f HMfuebHVNLtatlOG+nVXTYglAbd8PMx3uEC6V4a6l27bf7UWVqkL3iG5aZigiBfGSKZ0 zrbA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=mJBvQFsj; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-184631-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184631-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0c03b6bdsi36708555ad.431.2024.05.21.01.22.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 01:22:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184631-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=mJBvQFsj; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-184631-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184631-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 1A436B219B9 for ; Tue, 21 May 2024 08:21:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3EC1055C3C; Tue, 21 May 2024 08:21:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="mJBvQFsj"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="wup5wBrW" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BBD3E4D9EA; Tue, 21 May 2024 08:21:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716279691; cv=none; b=CwYJrggU0K+yFjot3LlsfyiayePrd3dHciFArqLDjnB/XY8CFIqsRjt47XfjpWZ5DziQzDlEP4IQtZ0jHkUq91S3esXY1ByhFLU57V/yY5nzr7P9VHcuqGdVxAjtMIWQhgeklNbq7ED5THvvzmODJWfb9GVQnsEJSWNiKv0+xTY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716279691; c=relaxed/simple; bh=3LQ/giQeL+p+EpzBLijm4U2fZPnJx68A5w/UUwyooPc=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=amw9l61Jx65UXsP6ji2JYM7vnMyNV8Ge8TQ5GZtPgXpEO7VG1eodorQ7/WNUsSDT+VH39LHJ6IqgpfdA/7JG5ZK7vYXfFx4zTdYN0rN4vISSFl0FO/bJaSXOLKBYbHz8k45FnPpN2z/4aHknDyB4QQvKVxHsSUWhSmEv3QKOxJU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=mJBvQFsj; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=wup5wBrW; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Tue, 21 May 2024 08:21:26 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1716279687; 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=uMv8kqcqNwxHCGusjyVyQBedIyoLP2alQ916eSqbmNM=; b=mJBvQFsjszyRTBs70B3X6MAZvltgdRuM0SkBkEhwVUu362JlLfzBllehverE6sfFANlUi2 Bi0TFCotDmeCrGe4iKYtpIGZJ3WEfjJaEUK9ALFbTeUmQKFJjP1j7l+u76pZXIV54ijRw/ nw0X7ZbF4fCUiig5cS1nP8TWCuFgbXV+WCfLzDzItV5C2yQuUot6Ws9KA4H/OO11gnNXQJ TUuyZWCkFAuJz1vGsbF0cVfTazcZ+qd6IjRnpFDCihQ/DFFDHMLQhVo4WKn25duQZRL8sd AsSNuX1HjWTvyHclvfuLdPg208L2iiMLlwkzriYiYEh1G1y8z0wBxch4RKP6oA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1716279687; 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=uMv8kqcqNwxHCGusjyVyQBedIyoLP2alQ916eSqbmNM=; b=wup5wBrWjtN+2prHaGdlE570xLF+RlWBZ/b5+gvKhpYaIwpKCFSDs1FlkDmi8xh8IlTUcY +qFNQPt/kAaS86Cw== From: "tip-bot2 for Uros Bizjak" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/percpu] x86/percpu: Rename percpu_stable_op() to __raw_cpu_read_stable() Cc: Uros Bizjak , Ingo Molnar , Andy Lutomirski , Josh Poimboeuf , Linus Torvalds , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240520080951.121049-1-ubizjak@gmail.com> References: <20240520080951.121049-1-ubizjak@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <171627968687.10875.5726493930151442367.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit The following commit has been merged into the x86/percpu branch of tip: Commit-ID: 48908919c9062bf9472def7389dd7cd9c6a45b70 Gitweb: https://git.kernel.org/tip/48908919c9062bf9472def7389dd7cd9c6a45b70 Author: Uros Bizjak AuthorDate: Mon, 20 May 2024 10:09:24 +02:00 Committer: Ingo Molnar CommitterDate: Mon, 20 May 2024 10:17:10 +02:00 x86/percpu: Rename percpu_stable_op() to __raw_cpu_read_stable() Rename percpu_stable_op() to __raw_cpu_read_stable() to be in line with other read/write percpu accessors. No functional change intended. Signed-off-by: Uros Bizjak Signed-off-by: Ingo Molnar Cc: Uros Bizjak Cc: Andy Lutomirski Cc: Josh Poimboeuf Cc: Linus Torvalds Link: https://lore.kernel.org/r/20240520080951.121049-1-ubizjak@gmail.com --- arch/x86/include/asm/percpu.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/x86/include/asm/percpu.h b/arch/x86/include/asm/percpu.h index c77393c..39762fc 100644 --- a/arch/x86/include/asm/percpu.h +++ b/arch/x86/include/asm/percpu.h @@ -190,10 +190,10 @@ do { \ #endif /* CONFIG_USE_X86_SEG_SUPPORT */ -#define percpu_stable_op(size, op, _var) \ +#define __raw_cpu_read_stable(size, _var) \ ({ \ __pcpu_type_##size pfo_val__; \ - asm(__pcpu_op2_##size(op, __force_percpu_arg(a[var]), "%[val]") \ + asm(__pcpu_op2_##size("mov", __force_percpu_arg(a[var]), "%[val]") \ : [val] __pcpu_reg_##size("=", pfo_val__) \ : [var] "i" (&(_var))); \ (typeof(_var))(unsigned long) pfo_val__; \ @@ -480,9 +480,9 @@ do { \ #define this_cpu_read_const(pcp) __raw_cpu_read_const(pcp) -#define this_cpu_read_stable_1(pcp) percpu_stable_op(1, "mov", pcp) -#define this_cpu_read_stable_2(pcp) percpu_stable_op(2, "mov", pcp) -#define this_cpu_read_stable_4(pcp) percpu_stable_op(4, "mov", pcp) +#define this_cpu_read_stable_1(pcp) __raw_cpu_read_stable(1, pcp) +#define this_cpu_read_stable_2(pcp) __raw_cpu_read_stable(2, pcp) +#define this_cpu_read_stable_4(pcp) __raw_cpu_read_stable(4, pcp) #define raw_cpu_add_1(pcp, val) percpu_add_op(1, , (pcp), val) #define raw_cpu_add_2(pcp, val) percpu_add_op(2, , (pcp), val) @@ -535,7 +535,7 @@ do { \ * 32 bit must fall back to generic operations. */ #ifdef CONFIG_X86_64 -#define this_cpu_read_stable_8(pcp) percpu_stable_op(8, "mov", pcp) +#define this_cpu_read_stable_8(pcp) __raw_cpu_read_stable(8, pcp) #define raw_cpu_add_8(pcp, val) percpu_add_op(8, , (pcp), val) #define raw_cpu_and_8(pcp, val) percpu_binary_op(8, , "and", (pcp), val)