Re: [PATCH 7/9] rust: hrtimer: expose interrupt state in hard callbacks
Andreas Hindborg <[email protected]>
| Newsgroups | org.kernel.vger.rust-for-linux,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
"Mike Lothian" <[email protected]> writes: > Hard hrtimer modes guarantee that their callbacks run with local > interrupts disabled. Carry that guarantee through HrTimerCallbackContext > so users of IRQ-aware locks do not need to assert the callback > context themselves. This looks good to me. We were pondering on removing the context type though [1]. We might have to keep it around for this to work. Best regards, Andreas Hindborg [1] https://lore.kernel.org/rust-for-linux/[email protected]/