vdso, math64: Provide mul_u64_u32_add_u64_shr()
authorAdrian Hunter <adrian.hunter@intel.com>
Mon, 25 Mar 2024 06:40:09 +0000 (08:40 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 8 Apr 2024 13:03:07 +0000 (15:03 +0200)
commit1beb35ec615f676d49d68b6dc23c7418ba8ff145
treea2ae41ba06edddd74a629dd071340eed60461ae5
parent5e5e51422cd189bc1b627f619f0f99324e6e4de9
vdso, math64: Provide mul_u64_u32_add_u64_shr()

Provide mul_u64_u32_add_u64_shr() which is a calculation that will be used
by timekeeping and VDSO.

Place #include <vdso/math64.h> after #include <asm/div64.h> to allow
architecture-specific overrides, at least for the kernel.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20240325064023.2997-6-adrian.hunter@intel.com
include/linux/math64.h
include/vdso/math64.h