]> Pileus Git - ~andy/linux/blobdiff - arch/arm64/kernel/vdso/gettimeofday.S
arm64: generic timer: use virtual counter instead of physical at EL0
[~andy/linux] / arch / arm64 / kernel / vdso / gettimeofday.S
index 6681f4032260cc0ab7aa3cf9ea204b85b96ff902..8bf658d974f947da714eb5e7a6812552173fe140 100644 (file)
@@ -220,9 +220,9 @@ ENTRY(__do_get_tspec)
        ldp     w11, w12, [vdso_data, #VDSO_CS_MULT]
        seqcnt_read w9
 
-       /* Read the physical counter. */
+       /* Read the virtual counter. */
        isb
-       mrs     x15, cntpct_el0
+       mrs     x15, cntvct_el0
 
        /* Calculate cycle delta and convert to ns. */
        sub     x10, x15, x10