Skip to content

Commit a729a63

Browse files
ahunter6KAGA-KOKO
authored andcommitted
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 <[email protected]> Signed-off-by: Adrian Hunter <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent e98ab3d commit a729a63

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

kernel/time/timekeeping.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ static inline u64 timekeeping_cycles_to_ns(const struct tk_read_base *tkr, u64 c
390390
return timekeeping_delta_to_ns(tkr, delta);
391391
}
392392

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)
394394
{
395395
u64 delta, cycles = tk_clock_read(tkr);
396396

@@ -449,7 +449,7 @@ static __always_inline u64 __ktime_get_fast_ns(struct tk_fast *tkf)
449449
seq = raw_read_seqcount_latch(&tkf->seq);
450450
tkr = tkf->base + (seq & 0x01);
451451
now = ktime_to_ns(tkr->base);
452-
now += fast_tk_get_delta_ns(tkr);
452+
now += __timekeeping_get_ns(tkr);
453453
} while (raw_read_seqcount_latch_retry(&tkf->seq, seq));
454454

455455
return now;
@@ -565,7 +565,7 @@ static __always_inline u64 __ktime_get_real_fast(struct tk_fast *tkf, u64 *mono)
565565
tkr = tkf->base + (seq & 0x01);
566566
basem = ktime_to_ns(tkr->base);
567567
baser = ktime_to_ns(tkr->base_real);
568-
delta = fast_tk_get_delta_ns(tkr);
568+
delta = __timekeeping_get_ns(tkr);
569569
} while (raw_read_seqcount_latch_retry(&tkf->seq, seq));
570570

571571
if (mono)

0 commit comments

Comments
 (0)