diff options
author | Ani Sinha <ani@anisinha.ca> | 2021-07-13 05:05:21 +0200 |
---|---|---|
committer | Wei Liu <wei.liu@kernel.org> | 2021-07-13 19:40:23 +0200 |
commit | c445535c3efbfb8cb42d098e624d46ab149664b7 (patch) | |
tree | 55dc142d1c0f20ceab0b84540b11bf9d3285eeb0 /arch/x86/hyperv | |
parent | asm-generic/hyperv: Add missing #include of nmi.h (diff) | |
download | linux-c445535c3efbfb8cb42d098e624d46ab149664b7.tar.xz linux-c445535c3efbfb8cb42d098e624d46ab149664b7.zip |
x86/hyperv: fix for unwanted manipulation of sched_clock when TSC marked unstable
Marking TSC as unstable has a side effect of marking sched_clock as
unstable when TSC is still being used as the sched_clock. This is not
desirable. Hyper-V ultimately uses a paravirtualized clock source that
provides a stable scheduler clock even on systems without TscInvariant
CPU capability. Hence, mark_tsc_unstable() call should be called _after_
scheduler clock has been changed to the paravirtualized clocksource. This
will prevent any unwanted manipulation of the sched_clock. Only TSC will
be correctly marked as unstable.
Signed-off-by: Ani Sinha <ani@anisinha.ca>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Tested-by: Michael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/20210713030522.1714803-1-ani@anisinha.ca
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Diffstat (limited to 'arch/x86/hyperv')
0 files changed, 0 insertions, 0 deletions