Skip to content

timekeeping: Fall cleaning

Thomas Gleixner lkml 1 version Applied

Status from this message: The following commit has been merged into the timers/core branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 14 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2timekeeping: Remove CONFIG_DEBUG_TIMEKEEPINGarch/riscv/configs/defconfig include/linux/timekeeper_internal.h kernel/time/timekeeping.c +2 more+3 -1361 reply
2/2timekeeping: Always check for negative motionarch/x86/Kconfig kernel/time/Kconfig kernel/time/timekeeping_internal.h+0 -1314 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchJohn StultzGuenter Roeck
1/2A-b
2/2A-b T-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [patch 0/2] timekeeping: Fall cleaning

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(-)