public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch 0/2] timekeeping: Fall cleaning
@ 2024-10-31 12:04 Thomas Gleixner
  2024-10-31 12:04 ` [patch 1/2] timekeeping: Remove CONFIG_DEBUG_TIMEKEEPING Thomas Gleixner
  2024-10-31 12:04 ` [patch 2/2] timekeeping: Always check for negative motion Thomas Gleixner
  0 siblings, 2 replies; 21+ messages in thread
From: Thomas Gleixner @ 2024-10-31 12:04 UTC (permalink / raw)
  To: LKML
  Cc: John Stultz, Anna-Maria Behnsen, Frederic Weisbecker,
	Stephen Boyd, Peter Zijlstra

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

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2024-12-05 15:11 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-31 12:04 [patch 0/2] timekeeping: Fall cleaning Thomas Gleixner
2024-10-31 12:04 ` [patch 1/2] timekeeping: Remove CONFIG_DEBUG_TIMEKEEPING Thomas Gleixner
2024-11-02  4:14   ` John Stultz
2024-11-02  9:24   ` [tip: timers/core] " tip-bot2 for Thomas Gleixner
2024-10-31 12:04 ` [patch 2/2] timekeeping: Always check for negative motion Thomas Gleixner
2024-11-02  4:15   ` John Stultz
2024-11-02  9:24   ` [tip: timers/core] " tip-bot2 for Thomas Gleixner
2024-11-25  0:48   ` [patch 2/2] " Guenter Roeck
2024-11-27 22:08     ` John Stultz
2024-11-27 23:02       ` Guenter Roeck
2024-11-28 14:51         ` Thomas Gleixner
2024-11-28 15:30           ` Guenter Roeck
2024-11-29 12:16             ` Thomas Gleixner
2024-11-29 16:09               ` Guenter Roeck
2024-11-30 11:09                 ` Thomas Gleixner
2024-11-30 18:21                   ` Guenter Roeck
2024-12-03 10:16                     ` [patch] clocksource: Make negative motion detection more robust Thomas Gleixner
2024-12-05 15:11                       ` [tip: timers/urgent] " tip-bot2 for Thomas Gleixner
2024-11-28 15:57           ` [patch 2/2] timekeeping: Always check for negative motion Guenter Roeck
2024-11-28 17:13             ` Guenter Roeck
2024-11-28 17:47               ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox