The sanity checks under CONFIG_TIMEKEEPING_DEBUG have served their purpose
for some time, but now that timekeeping handles potential 64bit math
overflow correctly and is unconditionally protected against negative motion
of time, these checks have no real value anymore.
CONFIG_CLOCKSOURCE_VALIDATE_LAST_CYCLE, which contains a protection against
negative motion of time is only used on x86. It used to be in the
timekeeper hot path, but now it's only in relative slow paths (watchdog and
timekeeping_advance()). This protection is useful in general and the extra
conditional in these usage sites does not really matter.
This series removes CONFIG_TIMEKEEPING_DEBUG and related code and makes the
negative protected variant of clocksource_delta() unconditional.
The series applies on top of
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers/core
Thanks,
tglx
---
arch/riscv/configs/defconfig | 1
arch/x86/Kconfig | 1
include/linux/timekeeper_internal.h | 16 --
kernel/time/Kconfig | 5
kernel/time/timekeeping.c | 108 --------------------
kernel/time/timekeeping_internal.h | 7 -
lib/Kconfig.debug | 13 --
tools/testing/selftests/wireguard/qemu/debug.config | 1
8 files changed, 3 insertions(+), 149 deletions(-)