mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jinjie Ruan <ruanjinjie@huawei.com>
To: "Russell King (Oracle)" <linux@armlinux.org.uk>
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: Mon, 5 Aug 2024 10:00:01 +0800	[thread overview]
Message-ID: <dbb9955b-b12f-6b4b-d380-1f95d3d9fed6@huawei.com> (raw)
In-Reply-To: <ZqzGp14u/XTST8v1@shell.armlinux.org.uk>



On 2024/8/2 19:44, Russell King (Oracle) wrote:
> 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?

Yes, many of our ARM32 products use different preemption models, and it
would be much more convenient if we could configure it at startup.

> 

      reply	other threads:[~2024-08-05  2:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-20  9:00 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)
2024-08-05  2:00     ` Jinjie Ruan [this message]

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=dbb9955b-b12f-6b4b-d380-1f95d3d9fed6@huawei.com \
    --to=ruanjinjie@huawei.com \
    --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=linux@armlinux.org.uk \
    --cc=nico@fluxnic.net \
    --cc=robh@kernel.org \
    --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 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®