Skip to content

Commit 7239ae7

Browse files
anna-marialxKAGA-KOKO
authored andcommitted
x86/vdso: Fix function reference in comment
Replace the reference to the non-existent function arch_vdso_cycles_valid() by the proper function arch_vdso_cycles_ok(). Signed-off-by: Anna-Maria Behnsen <anna-maria@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Vincenzo Frascino <vincenzo.frascino@arm.com> Link: https://lore.kernel.org/r/20240701-vdso-cleanup-v1-3-36eb64e7ece2@linutronix.de
1 parent d00106b commit 7239ae7

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

arch/x86/include/asm/vdso/gettimeofday.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,9 +328,8 @@ static __always_inline u64 vdso_calc_ns(const struct vdso_data *vd, u64 cycles,
328328
* due to unsigned comparison.
329329
*
330330
* Due to the MSB/Sign-bit being used as invalid marker (see
331-
* arch_vdso_cycles_valid() above), the effective mask is S64_MAX,
332-
* but that case is also unlikely and will also take the unlikely path
333-
* here.
331+
* arch_vdso_cycles_ok() above), the effective mask is S64_MAX, but that
332+
* case is also unlikely and will also take the unlikely path here.
334333
*/
335334
if (unlikely(delta > vd->max_cycles)) {
336335
/*

0 commit comments

Comments
 (0)