From: "Russell King (Oracle)" <linux@armlinux.org.uk>
To: Jinjie Ruan <ruanjinjie@huawei.com>
Cc: arnd@arndb.de, afd@ti.com, akpm@linux-foundation.org,
linus.walleij@linaro.org, eric.devolder@oracle.com,
robh@kernel.org, vincent.whitchurch@axis.com, bhe@redhat.com,
nico@fluxnic.net, ardb@kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org
Subject: Re: [PATCH] ARM: support PREEMPT_DYNAMIC
Date: Fri, 2 Aug 2024 12:44:39 +0100 [thread overview]
Message-ID: <ZqzGp14u/XTST8v1@shell.armlinux.org.uk> (raw)
In-Reply-To: <79a3de7c-21da-12ce-8372-9c9029c237ac@huawei.com>
On Wed, Jul 31, 2024 at 10:07:53AM +0800, Jinjie Ruan wrote:
> On 2024/6/20 17:00, Jinjie Ruan wrote:
> > Enable support for PREEMPT_DYNAMIC on arm32, allowing the preemption model
> > to be chosen at boot time.
> >
> > Similar to arm64, arm32 does not yet use the generic entry code, we must
> > define our own `sk_dynamic_irqentry_exit_cond_resched`, which will be
> > enabled/disabled by the common code in kernel/sched/core.c.
> >
> > And arm32 use generic preempt.h, so declare
> > `sk_dynamic_irqentry_exit_cond_resched` if the arch do not use generic
> > entry. Other architectures which use generic preempt.h but not use generic
> > entry can benefit from it.
> >
> > Test ok with the below cmdline parameters on Qemu versatilepb board:
> > `preempt=none`
> > `preempt=voluntary`
> > `preempt=full`
> >
> > Update preempt mode with debugfs interface on above Qemu board is also
> > tested ok:
> > # cd /sys/kernel/debug/sched
> > # echo none > preempt
> > # echo voluntary > preempt
> > # echo full > preempt
Do you have a use case for this feature?
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
next prev parent reply other threads:[~2024-08-02 11:45 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-20 9:00 [PATCH] ARM: support PREEMPT_DYNAMIC Jinjie Ruan
2024-07-31 2:07 ` Jinjie Ruan
2024-07-31 8:24 ` Russell King (Oracle)
2024-07-31 9:25 ` Jinjie Ruan
2024-07-31 10:03 ` Jinjie Ruan
2024-07-31 10:14 ` Russell King (Oracle)
2024-08-01 1:26 ` Jinjie Ruan
2024-08-23 15:56 ` Linus Walleij
2024-08-26 2:40 ` Jinjie Ruan
2024-08-02 11:44 ` Russell King (Oracle) [this message]
2024-08-05 2:00 ` Jinjie Ruan
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=ZqzGp14u/XTST8v1@shell.armlinux.org.uk \
--to=linux@armlinux.org.uk \
--cc=afd@ti.com \
--cc=akpm@linux-foundation.org \
--cc=ardb@kernel.org \
--cc=arnd@arndb.de \
--cc=bhe@redhat.com \
--cc=eric.devolder@oracle.com \
--cc=linus.walleij@linaro.org \
--cc=linux-arch@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nico@fluxnic.net \
--cc=robh@kernel.org \
--cc=ruanjinjie@huawei.com \
--cc=vincent.whitchurch@axis.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.