]> git.baikalelectronics.ru Git - kernel.git/commit
clocksource/drivers/hyper-v: Make sched clock return nanoseconds correctly
authorYubo Xie <yuboxie@microsoft.com>
Fri, 27 Mar 2020 02:11:59 +0000 (19:11 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 27 Mar 2020 11:27:45 +0000 (12:27 +0100)
commit3bc4be99e8d4fdc0c6c9e3fbc7dfe7096980ed3a
treeb1915b4e6b529795285ddf6c7e60bcba7ad673f5
parent62bb6f6e7e1031d088bdb460f83dacd1aee43ec7
clocksource/drivers/hyper-v: Make sched clock return nanoseconds correctly

The sched clock read functions return the HV clock (100ns granularity)
without converting it to nanoseconds.

Add the missing conversion.

Fixes: e18d3063f7de ("clocksource/drivers/hyperv: Add Hyper-V specific sched clock function")
Signed-off-by: Yubo Xie <yuboxie@microsoft.com>
Signed-off-by: Tianyu Lan <Tianyu.Lan@microsoft.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/20200327021159.31429-1-Tianyu.Lan@microsoft.com
drivers/clocksource/hyperv_timer.c