From nobody Sun Feb 8 15:01:51 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 DDA0B1FC0F0; Tue, 4 Mar 2025 08:27:50 +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=1741076872; cv=none; b=FGqJFarNC5YlkQzFW8FGHkMASMCS9f9Gn5I1fyk6NqxaN0rYNC/khjTXFxIrJnYmMWmJWPMYOOiVgmesYv17BnUq4s72/EoZJUr7aW0ZCovVF/Hadk9GT/Dnt6EhYB9kpLyR6zrLYmR9m00yvsskZNRgXXayp7q38R0lsuEyc3U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741076872; c=relaxed/simple; bh=rgblLjFwMI1dnb7hFOYpoZ4SIFxFFxEShpbdM+pDgk0=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=tkyXY8iGqHfPfIi4wrsKxs7oYds3HrNAUSGJ3Ir34WY7R/cPT7BVzTdvomZsu7p+5zCj+MYxI/HhDk2xa6dk/AsbJhhvS33YeuPCGRoVqVbWU7rt5J9jCysA7EwvUqjpMnR1b1MELRgidwPVCPG3POhwwNcqA3DQTOmES5HYkfY= 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=Fsy9rOl0; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=ezjtBZRl; 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="Fsy9rOl0"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="ezjtBZRl" Date: Tue, 04 Mar 2025 08:27:47 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1741076868; 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=gjfR8r3zDfCDQ6HKFdR36c3Dfl5Xmp7rXkT7wSkEm34=; b=Fsy9rOl0nygAseRT8wLxUpvnPMbHTiO2nNf40/FnIKTs6BYWrdDpcF/wiRLfbsNRJe8qSC AaZkRB2k/cspOk9p761DY3DhYcniD4H5AdkGLbchqYRZ6XNfkPL6Hyi//btf0ps5IyAWkU ksYXblOqWzP821z5tEZbIs3pmG71xRMkcwGru1ersrgN7xv5c2tqCdFuFEXfXbRDTufpkF ex+e8nkfzFhuVAQU5/wRC3x99cspLWZzAza4qnYpfyzebFDqHKDfaydqwfsHt8S3+wYYlr oi3XC8TvICV7KMVD71ty5RF/z+vHMb6sRatCsji8qHd03GguUPSflfssszoSFw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1741076868; 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=gjfR8r3zDfCDQ6HKFdR36c3Dfl5Xmp7rXkT7wSkEm34=; b=ezjtBZRliieUUpRtRQo3x0q6CPKiVjS1GAxQ5u8Z3ufJIJ2YpB5ZeMG2eNxCbSQg9n2YZ1 RgB7SMYjcNCHTUCA== 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/softirq: Move softirq_pending 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-7-brgerst@gmail.com> References: <20250303165246.2175811-7-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: <174107686744.14745.578494210267739469.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: d24ec21858c6cd17c7a46222d92b06644f69b12e Gitweb: https://git.kernel.org/tip/d24ec21858c6cd17c7a46222d92b06644= f69b12e Author: Brian Gerst AuthorDate: Mon, 03 Mar 2025 11:52:41 -05:00 Committer: Ingo Molnar CommitterDate: Mon, 03 Mar 2025 21:37:41 +01:00 x86/softirq: Move softirq_pending 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-7-brgerst@gmail.com --- arch/x86/include/asm/current.h | 1 - arch/x86/include/asm/hardirq.h | 4 ++-- arch/x86/kernel/irq.c | 3 +++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/x86/include/asm/current.h b/arch/x86/include/asm/current.h index 8ba2c0f..f153c77 100644 --- a/arch/x86/include/asm/current.h +++ b/arch/x86/include/asm/current.h @@ -16,7 +16,6 @@ struct pcpu_hot { struct task_struct *current_task; unsigned long top_of_stack; void *hardirq_stack_ptr; - u16 softirq_pending; #ifdef CONFIG_X86_64 bool hardirq_stack_inuse; #else diff --git a/arch/x86/include/asm/hardirq.h b/arch/x86/include/asm/hardirq.h index 6ffa8b7..f00c09f 100644 --- a/arch/x86/include/asm/hardirq.h +++ b/arch/x86/include/asm/hardirq.h @@ -3,7 +3,6 @@ #define _ASM_X86_HARDIRQ_H =20 #include -#include =20 typedef struct { #if IS_ENABLED(CONFIG_KVM_INTEL) @@ -66,7 +65,8 @@ extern u64 arch_irq_stat_cpu(unsigned int cpu); extern u64 arch_irq_stat(void); #define arch_irq_stat arch_irq_stat =20 -#define local_softirq_pending_ref pcpu_hot.softirq_pending +DECLARE_PER_CPU_CACHE_HOT(u16, __softirq_pending); +#define local_softirq_pending_ref __softirq_pending =20 #if IS_ENABLED(CONFIG_KVM_INTEL) /* diff --git a/arch/x86/kernel/irq.c b/arch/x86/kernel/irq.c index feca4f2..83a5252 100644 --- a/arch/x86/kernel/irq.c +++ b/arch/x86/kernel/irq.c @@ -33,6 +33,9 @@ DEFINE_PER_CPU_SHARED_ALIGNED(irq_cpustat_t, irq_stat); EXPORT_PER_CPU_SYMBOL(irq_stat); =20 +DEFINE_PER_CPU_CACHE_HOT(u16, __softirq_pending); +EXPORT_PER_CPU_SYMBOL(__softirq_pending); + atomic_t irq_err_count; =20 /*