RFC cleanup 64bit divide API
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest4 patches 6 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | introduce explicit signed/unsigned 64bit divideinclude/ include/ lib/ | +113 | 4 replies | |
| 2/4 | convert a few do_div userkernel/ kernel/ | +15 | 1 reply | |
| 3/4 | rename div64_64 to div64_u64arch/ include/ include/ +11 more | +31 | 0 replies | |
| 4/4 | remove div_long_long_remarch/ arch/ drivers/ +7 more | +44 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/4] [RFC] cleanup 64bit divide API
Hi,
The primary purpose of these patches is to introduce a signed divide, which is useful for NTP. While I'm at it I cleaned up the API, so it should be a little easier to use.
It uses a new header <linux/math64.h> for it instead of using <asm-generic/div64.h>. asm-generic/div64.h has the problem of an all-or-nothing approach, so any arch not using it has to implement the whole API and usually it's enough to provide only one of them. <linux/math64.h> allows to selectively functions as needed.
In the long term we can first depricate using <asm/div64.h> and even later do_div() completely.
bye, Roman