From: Philippe Gerum <rpm@xenomai.org>
To: Florian Bezdeka <florian.bezdeka@siemens.com>
Cc: "xenomai@lists.linux.dev" <xenomai@lists.linux.dev>
Subject: Re: Dovtail: Question regarding stop_machine
Date: Fri, 20 Nov 2026 10:38:14 +0100 [thread overview]
Message-ID: <87wlq79721.fsf@xenomai.org> (raw)
In-Reply-To: <951a56b5307da18a8326bc07e84a6faf3c109c93.camel@siemens.com> (Florian Bezdeka's message of "Thu, 19 Nov 2026 20:42:36 +0100")
Florian Bezdeka <florian.bezdeka@siemens.com> writes:
> Hi Philippe,
>
> while cleaning up my todo list I came along the following thread:
>
> https://lore.kernel.org/xenomai/1207-6aed9780-55-3e404bc0@80379430/T/#t
>
Mm, this one slipped through the cracks too.
> Seems that you handled that with
>
> 5c39a0e4f186 ("stop_machine: irq_pipeline: preserve hard irq state in local stop context")
>
> already (which sneaked in within the last days).
>
> Meanwhile, I would have migrated to local_irq_{save,restore}_full(),
> mainly because we touch the code already and it saves us one long at the
> stack.
>
> That should also work, no?
>
This would be equivalent, however the _full() variants are
stage-adaptive, so we'd have a couple of useless conditional branches
checking for oob context although the stop_machine trampoline always
runs in-band.
--
Philippe.
prev parent reply other threads:[~2026-11-20 9:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-19 19:42 Dovtail: Question regarding stop_machine Florian Bezdeka
2026-11-20 9:38 ` Philippe Gerum [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=87wlq79721.fsf@xenomai.org \
--to=rpm@xenomai.org \
--cc=florian.bezdeka@siemens.com \
--cc=xenomai@lists.linux.dev \
/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.