diff options
| author | FUJITA Tomonori <fujita.tomonori@gmail.com> | 2026-10-02 14:04:26 +0900 |
|---|---|---|
| committer | Miguel Ojeda <ojeda@kernel.org> | 2026-10-12 07:31:20 +0200 |
| commit | daff0977b2e36c777a00b4ca9fabc019834e60aa (patch) | |
| tree | 309bab60707af83e608647b2076aafe73dfed825 /scripts/Makefile.thinlto | |
| parent | cad3f4daef8a8793a953c632c2fcb0a6560da46a (diff) | |
| download | linux-daff0977b2e36c777a00b4ca9fabc019834e60aa.tar.gz linux-daff0977b2e36c777a00b4ca9fabc019834e60aa.zip | |
rust: time: add Delta::as_jiffies_unsigned()
Delta<Jiffy> is signed, but some C functions, such as
queue_delayed_work_on(), take a span in jiffies as unsigned long. So
each caller has to clamp a negative value to zero and cast it before
it passes the value to C. Add a helper that does both.
Suggested-by: Gary Guo <gary@garyguo.net>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
Acked-by: Andreas Hindborg <a.hindborg@kernel.org>
Reviewed-by: Gary Guo <gary@garyguo.net>
Link: https://patch.msgid.link/20261002050428.2746277-3-tomo@flapping.org
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
