s390/cpum_cf_diag: use get_tod_clock_fast()
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 1 Feb 2021 20:40:22 +0000 (21:40 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 9 Feb 2021 14:57:05 +0000 (15:57 +0100)
Use get_tod_clock_fast() instead of store_tod_clock(), since
store_tod_clock() can be very slow.

Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/perf_cpum_cf_diag.c

index e949ab8..6f6b338 100644 (file)
@@ -119,7 +119,7 @@ static void cf_diag_trailer(struct cf_trailer_entry *te)
                te->speed = 1;
        te->clock_base = 1;                     /* Save clock base */
        memcpy(&te->tod_base, &tod_clock_base[1], 8);
-       store_tod_clock((__u64 *)&te->timestamp);
+       te->timestamp = get_tod_clock_fast();
 }
 
 /*