]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rust: hrtimer: add clocksource selection through `ClockId`
authorAndreas Hindborg <a.hindborg@kernel.org>
Sun, 9 Mar 2025 15:19:03 +0000 (16:19 +0100)
committerAndreas Hindborg <a.hindborg@kernel.org>
Sat, 22 Mar 2025 11:08:54 +0000 (12:08 +0100)
commitaa33de03a3d58a8e502ead3ca0d445a4fba22c83
tree314dc82f37b6c239454b2ce2d0286d160ee2273b
parentbfa3a410bf03ca41a7a58dea1e9c2acac9295bf7
rust: hrtimer: add clocksource selection through `ClockId`

Allow selecting a clock source for timers by passing a `ClockId`
variant to `HrTimer::new`.

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-12-73586e2bd5f1@kernel.org
Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org>
rust/kernel/time.rs
rust/kernel/time/hrtimer.rs