[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250821035710.3692455-1-fujita.tomonori@gmail.com>
Date: Thu, 21 Aug 2025 12:57:08 +0900
From: FUJITA Tomonori <fujita.tomonori@...il.com>
To: a.hindborg@...nel.org,
alex.gaynor@...il.com,
ojeda@...nel.org
Cc: aliceryhl@...gle.com,
anna-maria@...utronix.de,
bjorn3_gh@...tonmail.com,
boqun.feng@...il.com,
dakr@...nel.org,
frederic@...nel.org,
gary@...yguo.net,
jstultz@...gle.com,
linux-kernel@...r.kernel.org,
lossin@...nel.org,
lyude@...hat.com,
rust-for-linux@...r.kernel.org,
sboyd@...nel.org,
tglx@...utronix.de,
tmgross@...ch.edu,
acourbot@...dia.com,
daniel.almeida@...labora.com
Subject: [PATCH v1 0/2] Add read_poll_timeout_atomic support
Add a helper function, read_poll_timeout_atomic() to poll periodically
until a condition is met or a timeout is reached.
Unlike read_poll_timeout(), read_poll_timeout_atomic() performs
busy-wait so it can be used in an atomic context.
This patchset can be applied on top of the read_poll_timeout patchset (v3) [1].
[1] https://lore.kernel.org/lkml/20250821002055.3654160-1-fujita.tomonori@gmail.com/
FUJITA Tomonori (2):
rust: add udelay() function
rust: Add read_poll_timeout_atomic function
rust/helpers/time.c | 5 +++
rust/kernel/io/poll.rs | 90 ++++++++++++++++++++++++++++++++++++++-
rust/kernel/time/delay.rs | 34 +++++++++++++++
3 files changed, 128 insertions(+), 1 deletion(-)
base-commit: a3b971f57db41ef1c68f842cd3c2c00b3df54ce4
--
2.43.0
Powered by blists - more mailing lists