diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2024-03-25 07:40:05 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2024-04-08 15:03:06 +0200 |
commit | c8e3a8b6f2e62661d838ae222774121ae23777a4 (patch) | |
tree | 9c2956871845abea8bf2764245bc3be816d0c52a /arch/s390/include/asm/vdso | |
parent | hrtimer: Remove unused function (diff) | |
download | linux-c8e3a8b6f2e62661d838ae222774121ae23777a4.tar.xz linux-c8e3a8b6f2e62661d838ae222774121ae23777a4.zip |
vdso: Consolidate vdso_calc_delta()
Consolidate vdso_calc_delta(), in preparation for further simplification.
Suggested-by: Thomas Gleixner <tglx@linutronix.de>
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-2-adrian.hunter@intel.com
Diffstat (limited to 'arch/s390/include/asm/vdso')
-rw-r--r-- | arch/s390/include/asm/vdso/gettimeofday.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/s390/include/asm/vdso/gettimeofday.h b/arch/s390/include/asm/vdso/gettimeofday.h index db84942eb78f..7937765ccfa5 100644 --- a/arch/s390/include/asm/vdso/gettimeofday.h +++ b/arch/s390/include/asm/vdso/gettimeofday.h @@ -6,16 +6,13 @@ #define VDSO_HAS_CLOCK_GETRES 1 +#define VDSO_DELTA_NOMASK 1 + #include <asm/syscall.h> #include <asm/timex.h> #include <asm/unistd.h> #include <linux/compiler.h> -#define vdso_calc_delta __arch_vdso_calc_delta -static __always_inline u64 __arch_vdso_calc_delta(u64 cycles, u64 last, u64 mask, u32 mult) -{ - return (cycles - last) * mult; -} static __always_inline const struct vdso_data *__arch_get_vdso_data(void) { |