Skip to content

Commit ac84bac

Browse files
Christian BraunerKAGA-KOKO
authored andcommitted
vdso/datapage: Use correct clock mode name in comment
While the explanation for time namespace <-> vdso interactions is very helpful it uses the wrong name in the comment when describing the clock mode making grepping a bit annoying. This seems like an accidental oversight when moving from VCLOCK_TIMENS to VDSO_CLOCKMODE_TIMENS. It seems that 660fd04 ("lib/vdso: Prepare for time namespace support") misspelled VCLOCK_TIMENS as VLOCK_TIMENS which explains why it got missed when VCLOCK_TIMENS became VDSO_CLOCKMODE_TIMENS in 2d6b01b ("lib/vdso: Move VCLOCK_TIMENS to vdso_clock_modes"). Update the comment to use VDSO_CLOCKMODE_TIMENS. Fixes: 660fd04 ("lib/vdso: Prepare for time namespace support") Fixes: 2d6b01b ("lib/vdso: Move VCLOCK_TIMENS to vdso_clock_modes") Signed-off-by: Christian Brauner <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Acked-by: Andrei Vagin <[email protected]> Acked-by: Vincenzo Frascino <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent ae83d0b commit ac84bac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/vdso/datapage.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ struct vdso_timestamp {
7373
*
7474
* @offset is used by the special time namespace VVAR pages which are
7575
* installed instead of the real VVAR page. These namespace pages must set
76-
* @seq to 1 and @clock_mode to VLOCK_TIMENS to force the code into the
77-
* time namespace slow path. The namespace aware functions retrieve the
76+
* @seq to 1 and @clock_mode to VDSO_CLOCKMODE_TIMENS to force the code into
77+
* the time namespace slow path. The namespace aware functions retrieve the
7878
* real system wide VVAR page, read host time and add the per clock offset.
7979
* For clocks which are not affected by time namespace adjustment the
8080
* offset must be zero.

0 commit comments

Comments
 (0)