From nobody Sun Feb 8 07:58:15 2026 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 29C6723645F; Tue, 4 Mar 2025 19:43:52 +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=1741117434; cv=none; b=FdFWww9bHvXs1HN/dDmtEwZOQ3i83VL6wq5q+ke3ZgZtP94cxQVMyf3M3bwoiAmPMvPf17hMHaYYeoxguA57d4rPEjO1dIuBqONaI+IXWZkVeELQ6Wj/DJgyVY9WloXDloAUcRWwDtxiPWzMyAnGFo5HwLdbir0CKTqFPhxDRB0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741117434; c=relaxed/simple; bh=elk/cl2NwMHoKmechVXIkJTQTlZU+SJXsLTz/R+TSi8=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=hS/PHljBlnJKe/HnS2yA9C6olWHBcA85j5YR79sxgf9DiCs1HP24U3/eSTvz/+Q74Q7zjurUs7oBoyEj5rtzYOqUToXJecXtE04fsWhZQgjUqmexZ7rvSCDnNtEE2ML4EMa6yIlijybg7Ee4aR6hbrtzuji8xJpGjTGdYp3ca+U= 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=WvANz79l; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=fcQmEwAj; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="WvANz79l"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="fcQmEwAj" Date: Tue, 04 Mar 2025 19:43:50 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1741117431; 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=UtVHWr7xSdGpUwnRA04QnmGi9k5xug8Rj5SGv21qnc0=; b=WvANz79lZpUycimYDYmTb2zOdZEQUybOlXBgq7BLbLp+o0c0Ty5+649P6FhZOeB4e/esrQ wG3HH+OZg1r8mjGdmjggQkWPo/43CNhvv0bMjaxRg+b3NAh+4p65Dkex4hZZVHE2sxV+vK +0MHsbIppY0CaobqTDesk3wmfS6aUlDG6Sulv/q9Q9oc5APHxRXodiEq7r/ESMpw1SCPGT 9B3UjoppejlJSuwj3qWNbwZkH0WTE254Z/4ePWJsFJeHh/1pFsSQ+FILxzLXNuDy++h+5k 8Bg84If0agw7h6bKpw+ES5o74aYBm2cAtBdDpZye5BAUvSZ/xV4prdyGQJkVWg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1741117431; 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=UtVHWr7xSdGpUwnRA04QnmGi9k5xug8Rj5SGv21qnc0=; b=fcQmEwAjmJZlyuq2/cvZbbr3A+KMOfOpDlD0B2MsnNvpyCH587nlciHaPQMPx3VHXvPjl6 ElNrWJOX/iBHS0CQ== From: "tip-bot2 for Brian Gerst" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/core] x86/smp: Move this_cpu_off to percpu hot section Cc: Brian Gerst , Ingo Molnar , Uros Bizjak , Linus Torvalds , Peter Zijlstra , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20250303165246.2175811-12-brgerst@gmail.com> References: <20250303165246.2175811-12-brgerst@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <174111743091.14745.9388988948766817065.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: quoted-printable The following commit has been merged into the x86/core branch of tip: Commit-ID: 06aa03056f90a67ce6e6b78c748801319904215c Gitweb: https://git.kernel.org/tip/06aa03056f90a67ce6e6b78c748801319= 904215c Author: Brian Gerst AuthorDate: Mon, 03 Mar 2025 11:52:46 -05:00 Committer: Ingo Molnar CommitterDate: Tue, 04 Mar 2025 20:30:33 +01:00 x86/smp: Move this_cpu_off to percpu hot section No functional change. Signed-off-by: Brian Gerst Signed-off-by: Ingo Molnar Acked-by: Uros Bizjak Cc: Linus Torvalds Cc: Peter Zijlstra Link: https://lore.kernel.org/r/20250303165246.2175811-12-brgerst@gmail.com --- arch/x86/include/asm/percpu.h | 2 +- arch/x86/kernel/setup_percpu.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/asm/percpu.h b/arch/x86/include/asm/percpu.h index 8cc9548..462d071 100644 --- a/arch/x86/include/asm/percpu.h +++ b/arch/x86/include/asm/percpu.h @@ -586,7 +586,7 @@ do { \ #include =20 /* We can use this directly for local CPU (faster). */ -DECLARE_PER_CPU_READ_MOSTLY(unsigned long, this_cpu_off); +DECLARE_PER_CPU_CACHE_HOT(unsigned long, this_cpu_off); =20 #endif /* !__ASSEMBLY__ */ =20 diff --git a/arch/x86/kernel/setup_percpu.c b/arch/x86/kernel/setup_percpu.c index 175afc3..bfa48e7 100644 --- a/arch/x86/kernel/setup_percpu.c +++ b/arch/x86/kernel/setup_percpu.c @@ -26,7 +26,7 @@ DEFINE_PER_CPU_CACHE_HOT(int, cpu_number); EXPORT_PER_CPU_SYMBOL(cpu_number); =20 -DEFINE_PER_CPU_READ_MOSTLY(unsigned long, this_cpu_off); +DEFINE_PER_CPU_CACHE_HOT(unsigned long, this_cpu_off); EXPORT_PER_CPU_SYMBOL(this_cpu_off); =20 unsigned long __per_cpu_offset[NR_CPUS] __ro_after_init;