x86/acrn: Set up timekeeping
authorFei Li <fei1.li@intel.com>
Thu, 4 Aug 2022 05:59:03 +0000 (13:59 +0800)
committerIngo Molnar <mingo@kernel.org>
Thu, 4 Aug 2022 09:11:59 +0000 (11:11 +0200)
commit81a71f51b89e84f39df2a3b1daf4274ae6b7b194
tree5a4ce493c1ea3f7f848b01eb46ea9c9eebd26b40
parent9de1f9c8ca5100a02a2e271bdbde36202e251b4b
x86/acrn: Set up timekeeping

ACRN Hypervisor reports timing information via CPUID leaf 0x40000010.
Get the TSC and CPU frequency via CPUID leaf 0x40000010 and set the
kernel values accordingly.

Signed-off-by: Fei Li <fei1.li@intel.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Conghui <conghui.chen@intel.com>
Link: https://lore.kernel.org/r/20220804055903.365211-1-fei1.li@intel.com
arch/x86/include/asm/acrn.h
arch/x86/kernel/cpu/acrn.c