timekeeping: Make do_adjtimex() reusable
authorThomas Gleixner <tglx@linutronix.de>
Wed, 25 Jun 2025 18:38:43 +0000 (20:38 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 27 Jun 2025 18:13:13 +0000 (20:13 +0200)
commit775f71ebedd382da390dc16a4c28cffa5b937f79
tree4d472b51703cf2d0b0912665123771d6b9e06568
parent2c8aea59c206b12b436373861590baeda728be12
timekeeping: Make do_adjtimex() reusable

Split out the actual functionality of adjtimex() and make do_adjtimex() a
wrapper which feeds the core timekeeper into it and handles the result
including audit at the call site.

This allows to reuse the actual functionality for auxiliary clocks.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: John Stultz <jstultz@google.com>
Link: https://lore.kernel.org/all/20250625183758.187322876@linutronix.de
kernel/time/timekeeping.c