From: K. Y. Srinivasan Date: Thu, 19 Jan 2017 18:51:52 +0000 (-0700) Subject: Drivers: hv: util: Use hv_get_current_tick() to get current tick X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=305f7549c9298247723c255baddb7a54b4e63050;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Drivers: hv: util: Use hv_get_current_tick() to get current tick As part of the effort to interact with Hyper-V in an instruction set architecture independent way, use the new API to get the current tick. Signed-off-by: K. Y. Srinivasan Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/hv/hv_util.c b/drivers/hv/hv_util.c index e7707747f56d..7c90e3334a88 100644 --- a/drivers/hv/hv_util.c +++ b/drivers/hv/hv_util.c @@ -27,6 +27,7 @@ #include #include #include +#include #include "hyperv_vmbus.h" @@ -199,7 +200,7 @@ static void hv_set_host_time(struct work_struct *work) */ u64 current_tick; - rdmsrl(HV_X64_MSR_TIME_REF_COUNT, current_tick); + hv_get_current_tick(current_tick); newtime += (current_tick - wrk->ref_time); } host_tns = (newtime - WLTIMEDELTA) * 100;