-
Nicholas Piggin authored
This will be used for converting time intervals in different base units to host units, for the purpose of scheduling timers to emulate target timers. Timers typically must not fire before their requested expiry time but may fire some time afterward, so rounding up is the right way to implement these. Signed-off-by:
Nicholas Piggin <npiggin@gmail.com>
Reviewed-by:
Richard Henderson <richard.henderson@linaro.org>
[ clg: renamed __muldiv64() to muldiv64_rounding() ]
Signed-off-by:
Cédric Le Goater <clg@kaod.org>Nicholas Piggin authoredThis will be used for converting time intervals in different base units to host units, for the purpose of scheduling timers to emulate target timers. Timers typically must not fire before their requested expiry time but may fire some time afterward, so rounding up is the right way to implement these. Signed-off-by:
Nicholas Piggin <npiggin@gmail.com>
Reviewed-by:
Richard Henderson <richard.henderson@linaro.org>
[ clg: renamed __muldiv64() to muldiv64_rounding() ]
Signed-off-by:
Cédric Le Goater <clg@kaod.org>
Loading