Home
last modified time | relevance | path

Searched hist:"66 cc016a" (Results 1 – 1 of 1) sorted by relevance

/linux/arch/riscv/lib/
H A Ddelay.cdiff 66cc016a Wed Aug 07 01:28:33 GMT 2019 Paul Walmsley <paul.walmsley@sifive.com> riscv: delay: use do_div() instead of __udivdi3()

In preparation for removing __udivdi3() from the RISC-V
architecture-specific files, convert its one user to use do_div().
This avoids breaking the RV32 build after __udivdi3() is removed.

This second version removes the assignment of the remainder to an
unused temporary variable. Thanks to Nicolas Pitre <nico@fluxnic.net>
for the suggestion.

Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
Cc: Nicolas Pitre <nico@fluxnic.net>