Thread (42 messages) flat view 42 messages, 3 authors, 2025-06-14

Re: [patch V2 17/26] timekeeping: Provide time getters for auxiliary clocks

From: Thomas Gleixner <hidden>
Date: 2025-06-14 07:18:20
Also in: lkml

On Fri, Jun 13 2025 at 19:51, John Stultz wrote:
On Mon, May 19, 2025 at 1:33 AM Thomas Gleixner [off-list ref] wrote:
quoted
+/**
+ * ktime_get_aux - Get TAI time for a AUX clock
Is this actually the TAI time? Wouldn't it be the MONOTONIC time for
the AUX clock?
Of course not TAI. It's not monotonic either as it can be set. It's just
AUX clock time, whatever that means :)
quoted
+ * @id:        ID of the clock to read (CLOCK_AUX...)
+ * @kt:        Pointer to ktime_t to store the time stamp
+ *
+ * Returns: True if the timestamp is valid, false otherwise
+ */
+bool ktime_get_aux(clockid_t id, ktime_t *kt)
+{
+       struct tk_data *tkd = aux_get_tk_data(id);
+       struct timekeeper *tk;
Nit: Just to be super explicit, would it be good to name these aux_tk
and aux_tkd?
So it's more clear you're not working with the standard timekeeper?
Yes.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help