From: "Christophe Leroy (CS GROUP)" <chleroy@kernel.org>
To: Mark Rutland <mark.rutland@arm.com>,
Shrikanth Hegde <sshegde@linux.ibm.com>
Cc: linux-kernel@vger.kernel.org, frederic@kernel.org,
jstultz@google.com, juri.lelli@redhat.com, mingo@redhat.com,
peterz@infradead.org, tglx@linutronix.de,
vincent.guittot@linaro.org, vschneid@redhat.com
Subject: Re: [PATCH 4/5] sched: dynamic: Simplify irqentry_exit_cond_resched()
Date: Mon, 27 Jul 2026 13:28:17 +0200 [thread overview]
Message-ID: <0829b0c0-9b33-4f29-8f10-1b85b828bc8a@kernel.org> (raw)
In-Reply-To: <aloMYKbjZ-GrIoJe@J2N7QTR9R3>
Hi Mark,
Le 17/07/2026 à 13:05, Mark Rutland a écrit :
> On Mon, Jul 06, 2026 at 10:12:29AM +0530, Shrikanth Hegde wrote:
>> +cc Christophe.
>>
>> On 7/3/26 7:03 PM, Mark Rutland wrote:
>>> PREEMPT_DYNAMIC is now limited to the FULL and LAZY preemption models.
>>> In either model, irqentry_exit_cond_resched() is always called and never
>>> disabled.
>>>
>>> Remove the unnecessary code for this when PREEMPT_DYNAMIC is selected.
>>>
>>> Signed-off-by: Mark Rutland <mark.rutland@arm.com>
>>> Cc: Frederic Weisbecker <frederic@kernel.org>
>>> Cc: Ingo Molnar <mingo@redhat.com>
>>> Cc: John Stultz <jstultz@google.com>
>>> Cc: Juri Lelli <juri.lelli@redhat.com>
>>> Cc: Peter Zijlstra <peterz@infradead.org>
>>> Cc: Thomas Gleixner <tglx@linutronix.de>
>>> Cc: Valentin Schneider <vschneid@redhat.com>
>>> Cc: Vincent Guittot <vincent.guittot@linaro.org>
>>> ---
>>> arch/powerpc/include/asm/preempt.h | 7 -------
>>> include/linux/irq-entry-common.h | 17 +----------------
>>> kernel/entry/common.c | 17 ++---------------
>>> kernel/sched/core.c | 7 -------
>>> 4 files changed, 3 insertions(+), 45 deletions(-)
>>>
>>> diff --git a/arch/powerpc/include/asm/preempt.h b/arch/powerpc/include/asm/preempt.h
>>> index 000e2b9681f30..79fc1f9df88d9 100644
>>> --- a/arch/powerpc/include/asm/preempt.h
>>> +++ b/arch/powerpc/include/asm/preempt.h
>>> @@ -4,13 +4,6 @@
>>> #include <asm-generic/preempt.h>
>>> -#if defined(CONFIG_PREEMPT_DYNAMIC)
>>> -#include <linux/jump_label.h>
>>> -DECLARE_STATIC_KEY_TRUE(sk_dynamic_irqentry_exit_cond_resched);
>>> -#define need_irq_preemption() \
>>> - (static_branch_unlikely(&sk_dynamic_irqentry_exit_cond_resched))
>>> -#else
>>> #define need_irq_preemption() (IS_ENABLED(CONFIG_PREEMPTION))
>>> -#endif
>>
>> JFYI,
>> Christophe had sent this patch, I am sure you guys will sort out the
>> conflicts. (I don't see it merged yet, but likely might)
>>
>> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flore.kernel.org%2Fall%2F2bf10a0afffefb6aca44bf2f864cc17471a80e31.1781870889.git.chleroy%40kernel.org%2F&data=05%7C02%7Cchristophe.leroy%40csgroup.eu%7Cd53a0ccd869f471aaafe08dee3f345aa%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C639198831155344265%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=Uz61UVryN4sw1GprTddsVCFvEkuXguHZufVNJr0PpeY%3D&reserved=0
>
> Thanks for the heads-up!
>
> Sorry, I'd skipped Ccing all the arch folk as I hadn't expected anyone
> was likely to be doing similar in the arch code right now. I'll make
> sure you're both Cc'd for any subsequent versions.
>
> It looks like the only difference for powerpc is that I leave
> need_irq_preemption() lying around. Christophe, if you're happy with
> this series, I could pick a patch from you to remove that (e.g. take
> your patch and apply it to the end of this series, reduced to removing
> need_irq_preemption()).
>
> Any preference?
I'm just back from summer vacation.
No preference, but it looks like my patch was merged into v7.2-rc4 as
commit a2c02aa0c6ca ("powerpc: Remove dead non-preemption code"), so I
fear you'll need to rebase your work on top of it.
Christophe
>
> [...]
>
>> Change per se, looks good to me.
>>
>> Reviewed-by: Shrikanth Hegde <sshegde@linux.ibm.com>
>
> Thanks!
>
> Mark.
next prev parent reply other threads:[~2026-07-27 11:28 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-03 13:33 [PATCH 0/5] sched: dynamic: Simplify PREEMPT_DYNAMIC Mark Rutland
2026-07-03 13:33 ` [PATCH 1/5] sched: dynamic: Make PREEMPT_DYNAMIC depend on ARCH_HAS_PREEMPT_LAZY Mark Rutland
2026-07-06 4:36 ` Shrikanth Hegde
2026-07-17 10:59 ` Mark Rutland
2026-07-27 12:37 ` Jinjie Ruan
2026-07-03 13:33 ` [PATCH 2/5] sched: dynamic: Simplify {cond,might}_resched() Mark Rutland
2026-07-06 4:59 ` Shrikanth Hegde
2026-07-17 11:03 ` Mark Rutland
2026-07-03 13:33 ` [PATCH 3/5] sched: dynamic: Simplify preempt_schedule{,_notrace}() Mark Rutland
2026-07-06 5:19 ` Shrikanth Hegde
2026-07-03 13:33 ` [PATCH 4/5] sched: dynamic: Simplify irqentry_exit_cond_resched() Mark Rutland
2026-07-06 4:42 ` Shrikanth Hegde
2026-07-17 11:05 ` Mark Rutland
2026-07-17 13:49 ` Shrikanth Hegde
2026-07-17 13:57 ` Mark Rutland
2026-07-27 11:28 ` Christophe Leroy (CS GROUP) [this message]
2026-07-03 13:33 ` [PATCH 5/5] sched: dynamic: Remove HAVE_PREEMPT_DYNAMIC_{CALL,KEY} Mark Rutland
2026-07-06 4:30 ` [PATCH 0/5] sched: dynamic: Simplify PREEMPT_DYNAMIC Shrikanth Hegde
2026-07-17 11:35 ` Mark Rutland
2026-07-30 15:39 ` Mete Durlu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0829b0c0-9b33-4f29-8f10-1b85b828bc8a@kernel.org \
--to=chleroy@kernel.org \
--cc=frederic@kernel.org \
--cc=jstultz@google.com \
--cc=juri.lelli@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=sshegde@linux.ibm.com \
--cc=tglx@linutronix.de \
--cc=vincent.guittot@linaro.org \
--cc=vschneid@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®