summaryrefslogtreecommitdiffstats
path: root/rust/kernel/time/hrtimer.rs
diff options
context:
space:
mode:
authorAndreas Hindborg <a.hindborg@kernel.org>2025-03-09 16:18:59 +0100
committerAndreas Hindborg <a.hindborg@kernel.org>2025-03-22 12:08:54 +0100
commit042b0c7947d39aeac34b35fb89034ca1345f1fc3 (patch)
tree897b96407186e6847c03781b072bd3890ccd5ef5 /rust/kernel/time/hrtimer.rs
parent582523d9de9a8875df62a08af7443884ff5d9969 (diff)
downloadlinux-042b0c7947d39aeac34b35fb89034ca1345f1fc3.tar.gz
linux-042b0c7947d39aeac34b35fb89034ca1345f1fc3.tar.bz2
linux-042b0c7947d39aeac34b35fb89034ca1345f1fc3.zip
rust: hrtimer: implement `UnsafeHrTimerPointer` for `Pin<&mut T>`
Allow pinned mutable references to structs that contain a `HrTimer` node to be scheduled with the `hrtimer` subsystem. Acked-by: Frederic Weisbecker <frederic@kernel.org> Acked-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Lyude Paul <lyude@redhat.com> Reviewed-by: Benno Lossin <benno.lossin@proton.me> Link: https://lore.kernel.org/r/20250309-hrtimer-v3-v6-12-rc2-v12-8-73586e2bd5f1@kernel.org Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org>
Diffstat (limited to 'rust/kernel/time/hrtimer.rs')
-rw-r--r--rust/kernel/time/hrtimer.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/rust/kernel/time/hrtimer.rs b/rust/kernel/time/hrtimer.rs
index 16b3c0f09579..2089170972ef 100644
--- a/rust/kernel/time/hrtimer.rs
+++ b/rust/kernel/time/hrtimer.rs
@@ -435,3 +435,5 @@ mod arc;
pub use arc::ArcHrTimerHandle;
mod pin;
pub use pin::PinHrTimerHandle;
+mod pin_mut;
+pub use pin_mut::PinMutHrTimerHandle;