rust: hrtimer: introduce hrtimer support
authorAndreas Hindborg <a.hindborg@kernel.org>
Sun, 9 Mar 2025 15:18:52 +0000 (16:18 +0100)
committerAndreas Hindborg <a.hindborg@kernel.org>
Tue, 11 Mar 2025 20:00:28 +0000 (21:00 +0100)
commit8a8afe9349fb91b604f10195984348e65d523daf
tree348213a6a14e4779d44c59d215c71c22ddad2a28
parenta64dcfb451e254085a7daee5fe51bf22959d52d3
rust: hrtimer: introduce hrtimer support

Add support for intrusive use of the hrtimer system. For now,
only add support for embedding one timer per Rust struct.

The hrtimer Rust API is based on the intrusive style pattern introduced by
the Rust workqueue API.

Acked-by: Frederic Weisbecker <frederic@kernel.org>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Benno Lossin <benno.lossin@proton.me>
Reviewed-by: Tamir Duberstein <tamird@gmail.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Link: https://lore.kernel.org/r/20250309-hrtimer-v3-v6-12-rc2-v12-1-73586e2bd5f1@kernel.org
Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org>
rust/kernel/time.rs
rust/kernel/time/hrtimer.rs [new file with mode: 0644]