Re: [PATCH v5 08/10] rust: sync: atomic: Add Atomic<{usize,isize}>
Andreas Hindborg <[email protected]>
| Newsgroups | dev.linux.lists.lkmm,org.kernel.vger.linux-arch,org.kernel.vger.linux-kernel,org.kernel.vger.rust-for-linux |
|---|---|
| Message-ID | <[email protected]> |
"Boqun Feng" <[email protected]> writes: > Add generic atomic support for `usize` and `isize`. Note that instead of > mapping directly to `atomic_long_t`, the represention type > (`AllowAtomic::Repr`) is selected based on CONFIG_64BIT. This reduces > the necessarity of creating `atomic_long_*` helpers, which could save > the binary size of kernel if inline helpers are not available. > > Signed-off-by: Boqun Feng <[email protected]> Reviewed-by: Andreas Hindborg <[email protected]> Best regards, Andreas Hindborg