OSDN Git Service

clocksource: hyper-v: Introduce TSC PFN getter
authorStanislav Kinsburskiy <stanislav.kinsburskiy@gmail.com>
Thu, 3 Nov 2022 17:58:54 +0000 (17:58 +0000)
committerWei Liu <wei.liu@kernel.org>
Mon, 28 Nov 2022 16:48:20 +0000 (16:48 +0000)
commite1f5c66db85fb3e0a17b803fc2e868e9c59c193a
tree070a087ba87aebf69b913c6e3049590a52525f06
parent76be6331a81607359cb41ca20ec5388c68c855e3
clocksource: hyper-v: Introduce TSC PFN getter

And rework the code to use it instead of the physical address, which isn't
required by itself.

This is a cleanup and precursor patch for upcoming support for TSC page
mapping into Microsoft Hypervisor root partition, where TSC PFN will be
defined by the hypervisor and not by the kernel.

Signed-off-by: Stanislav Kinsburskiy <stanislav.kinsburskiy@gmail.com>
CC: "K. Y. Srinivasan" <kys@microsoft.com>
CC: Haiyang Zhang <haiyangz@microsoft.com>
CC: Wei Liu <wei.liu@kernel.org>
CC: Dexuan Cui <decui@microsoft.com>
CC: Daniel Lezcano <daniel.lezcano@linaro.org>
CC: Thomas Gleixner <tglx@linutronix.de>
CC: linux-hyperv@vger.kernel.org
CC: linux-kernel@vger.kernel.org
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Reviewed-by: Anirudh Rayabharam <anrayabh@linux.microsoft.com>
Link: https://lore.kernel.org/r/166749833420.218190.2102763345349472395.stgit@skinsburskii-cloud-desktop.internal.cloudapp.net
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/clocksource/hyperv_timer.c