From nobody Mon Jun 15 05:20:52 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 8FC1C395247; Wed, 8 Apr 2026 10:10:41 +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=1775643047; cv=none; b=IydXs6mUE5GihclR0HYWXDVrLhyu1qsNwYaap3TOx+WG45Il9qj38tmidOoqeVyT1ofhiojpLLL0tPAtD/y2F/YhLXASamwQgacBOby9F5NNp/6o8ygtjWmzkOKL9FRenRV473z379EjQCqNaVeZBkN0dF+N4/EBYaf98XDz/Tg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775643047; c=relaxed/simple; bh=WcsZaXZL+KFKYVQMNvMEsX1vrxQoFoMFQ+WDnT+X7Qk=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=S+1p+APCN/1fJFlr073uFg5Ug+/X/BxDr/5+0tk+TiL//K7vtd1zjacpcPwpMVqby4tJYezbYfWpWqqlknQGgsWCbRvSknHX9BM8GwZPup/aJzaRnWbSynxJJxPwXuuxVaTNmg0089/Ga1bwlWmHPQVy6wet2RWe7LzFa1uP6+4= 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=StN2P0HY; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=BzqLCKnE; 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="StN2P0HY"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="BzqLCKnE" Date: Wed, 08 Apr 2026 10:10:37 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1775643038; 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=OsznhmhAQ7zc13w+4kn/GEAqfH9Xqx8qTVS5d8WQgto=; b=StN2P0HYUd94sEuGslb1dUjN90U7phTe+n3FXctTKUbgxGJsFNmMnTo13EDdglg0zC2GZx dl2Onz4BVHD2R0T6vhehUuHsO/lo9zpx231s1yk3q/CAT3yvHV9WEb8K+se8pBlJLs7jMP mdfAjC0BZKOW8dLQjNM8oTVtadKB4t94nS8Je+vj4roz2zH761SS9AxFc7zO9bVqz3djcc Duum664/if8mXviNJFEmAHraY+rfCJJBsnjMVXoLkuk1RxywFhr2JGoHNAXSR6cNNSbkA5 G3JiomQbOMa7kbM5lWX+RG+cY8OtJHffXY5esqK4gLM+N+3e8Pomi/NmbfW0Aw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1775643038; 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=OsznhmhAQ7zc13w+4kn/GEAqfH9Xqx8qTVS5d8WQgto=; b=BzqLCKnEmcSiFuZKnudLw1S6FXdPStfHGGDzFItSa/aaegRAUJSP7iAUw+TUTaCBBAv4QQ UtSQ1PPabMJ1ziDA== From: "tip-bot2 for Mark Rutland" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/hrtick] entry: Move irqentry_enter() prototype later Cc: Mark Rutland , Thomas Gleixner , Jinjie Ruan , "Peter Zijlstra (Intel)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260407131650.3813777-4-mark.rutland@arm.com> References: <20260407131650.3813777-4-mark.rutland@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <177564303778.801717.13136769783188548561.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 sched/hrtick branch of tip: Commit-ID: eb1b51afde506a8e38976190e518990d69ef5382 Gitweb: https://git.kernel.org/tip/eb1b51afde506a8e38976190e518990d6= 9ef5382 Author: Mark Rutland AuthorDate: Tue, 07 Apr 2026 14:16:43 +01:00 Committer: Thomas Gleixner CommitterDate: Wed, 08 Apr 2026 11:43:31 +02:00 entry: Move irqentry_enter() prototype later Subsequent patches will rework the irqentry_*() functions. The end result (and the intermediate diffs) will be much clearer if the prototype for the irqentry_enter() function is moved later, immediately before the prototype of the irqentry_exit() function. Move the prototype later. This is purely a move; there should be no functional change as a result of this change. Signed-off-by: Mark Rutland Signed-off-by: Thomas Gleixner Reviewed-by: Jinjie Ruan Acked-by: Peter Zijlstra (Intel) Link: https://patch.msgid.link/20260407131650.3813777-4-mark.rutland@arm.com --- include/linux/irq-entry-common.h | 44 +++++++++++++++---------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/include/linux/irq-entry-common.h b/include/linux/irq-entry-com= mon.h index 93b4b55..d1e8591 100644 --- a/include/linux/irq-entry-common.h +++ b/include/linux/irq-entry-common.h @@ -335,6 +335,28 @@ typedef struct irqentry_state { #endif =20 /** + * irqentry_exit_cond_resched - Conditionally reschedule on return from in= terrupt + * + * Conditional reschedule with additional sanity checks. + */ +void raw_irqentry_exit_cond_resched(void); + +#ifdef CONFIG_PREEMPT_DYNAMIC +#if defined(CONFIG_HAVE_PREEMPT_DYNAMIC_CALL) +#define irqentry_exit_cond_resched_dynamic_enabled raw_irqentry_exit_cond_= resched +#define irqentry_exit_cond_resched_dynamic_disabled NULL +DECLARE_STATIC_CALL(irqentry_exit_cond_resched, raw_irqentry_exit_cond_res= ched); +#define irqentry_exit_cond_resched() static_call(irqentry_exit_cond_resche= d)() +#elif defined(CONFIG_HAVE_PREEMPT_DYNAMIC_KEY) +DECLARE_STATIC_KEY_TRUE(sk_dynamic_irqentry_exit_cond_resched); +void dynamic_irqentry_exit_cond_resched(void); +#define irqentry_exit_cond_resched() dynamic_irqentry_exit_cond_resched() +#endif +#else /* CONFIG_PREEMPT_DYNAMIC */ +#define irqentry_exit_cond_resched() raw_irqentry_exit_cond_resched() +#endif /* CONFIG_PREEMPT_DYNAMIC */ + +/** * irqentry_enter - Handle state tracking on ordinary interrupt entries * @regs: Pointer to pt_regs of interrupted context * @@ -368,28 +390,6 @@ typedef struct irqentry_state { irqentry_state_t noinstr irqentry_enter(struct pt_regs *regs); =20 /** - * irqentry_exit_cond_resched - Conditionally reschedule on return from in= terrupt - * - * Conditional reschedule with additional sanity checks. - */ -void raw_irqentry_exit_cond_resched(void); - -#ifdef CONFIG_PREEMPT_DYNAMIC -#if defined(CONFIG_HAVE_PREEMPT_DYNAMIC_CALL) -#define irqentry_exit_cond_resched_dynamic_enabled raw_irqentry_exit_cond_= resched -#define irqentry_exit_cond_resched_dynamic_disabled NULL -DECLARE_STATIC_CALL(irqentry_exit_cond_resched, raw_irqentry_exit_cond_res= ched); -#define irqentry_exit_cond_resched() static_call(irqentry_exit_cond_resche= d)() -#elif defined(CONFIG_HAVE_PREEMPT_DYNAMIC_KEY) -DECLARE_STATIC_KEY_TRUE(sk_dynamic_irqentry_exit_cond_resched); -void dynamic_irqentry_exit_cond_resched(void); -#define irqentry_exit_cond_resched() dynamic_irqentry_exit_cond_resched() -#endif -#else /* CONFIG_PREEMPT_DYNAMIC */ -#define irqentry_exit_cond_resched() raw_irqentry_exit_cond_resched() -#endif /* CONFIG_PREEMPT_DYNAMIC */ - -/** * irqentry_exit - Handle return from exception that used irqentry_enter() * @regs: Pointer to pt_regs (exception entry regs) * @state: Return value from matching call to irqentry_enter()