Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

timekeeping: Rename fast_tk_get_delta_ns() to __timekeeping_get_ns()

Rename fast_tk_get_delta_ns() to __timekeeping_get_ns() to prepare for its
reuse as a general timekeeping helper function.

Suggested-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20240325064023.2997-11-adrian.hunter@intel.com

authored by

Adrian Hunter and committed by
Thomas Gleixner
a729a63c e98ab3d4

+3 -3
+3 -3
kernel/time/timekeeping.c
··· 390 390 return timekeeping_delta_to_ns(tkr, delta); 391 391 } 392 392 393 - static __always_inline u64 fast_tk_get_delta_ns(struct tk_read_base *tkr) 393 + static __always_inline u64 __timekeeping_get_ns(const struct tk_read_base *tkr) 394 394 { 395 395 u64 delta, cycles = tk_clock_read(tkr); 396 396 ··· 449 449 seq = raw_read_seqcount_latch(&tkf->seq); 450 450 tkr = tkf->base + (seq & 0x01); 451 451 now = ktime_to_ns(tkr->base); 452 - now += fast_tk_get_delta_ns(tkr); 452 + now += __timekeeping_get_ns(tkr); 453 453 } while (raw_read_seqcount_latch_retry(&tkf->seq, seq)); 454 454 455 455 return now; ··· 565 565 tkr = tkf->base + (seq & 0x01); 566 566 basem = ktime_to_ns(tkr->base); 567 567 baser = ktime_to_ns(tkr->base_real); 568 - delta = fast_tk_get_delta_ns(tkr); 568 + delta = __timekeeping_get_ns(tkr); 569 569 } while (raw_read_seqcount_latch_retry(&tkf->seq, seq)); 570 570 571 571 if (mono)