Centos-kernel-stream-9/include/clocksource
Paolo Bonzini fdc27e369b clocksource: hyper-v: Adjust hv_read_tsc_page_tsc() to avoid special casing U64_MAX
JIRA: https://issues.redhat.com/browse/RHEL-14702

Currently hv_read_tsc_page_tsc() (ab)uses the (valid) time value of
U64_MAX as an error return. This breaks the clean wrap-around of the
clock.

Modify the function signature to return a boolean state and provide
another u64 pointer to store the actual time on success. This obviates
the need to steal one time value and restores the full counter width.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Tested-by: Michael Kelley <mikelley@microsoft.com>  # Hyper-V
Link: https://lore.kernel.org/r/20230519102715.775630881@infradead.org
(cherry picked from commit 9397fa2ea3e7634f61da1ab76b9eb88ba04dfdfc)
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2023-12-01 14:51:07 +01:00
..
arm_arch_timer.h KVM: arm64: timers: Use CNTPOFF_EL2 to offset the physical timer 2023-07-03 11:15:22 +02:00
hyperv_timer.h clocksource: hyper-v: Adjust hv_read_tsc_page_tsc() to avoid special casing U64_MAX 2023-12-01 14:51:07 +01:00
pxa.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 441 2019-06-05 17:37:17 +02:00
samsung_pwm.h clocksource/drivers/samsung_pwm: Constify passed structure 2021-06-04 10:12:11 +02:00
timer-davinci.h clocksource/drivers/davinci: Add support for clockevents 2019-06-25 20:46:14 +02:00
timer-goldfish.h clocksource/drivers: Add a goldfish-timer clocksource 2023-05-30 13:35:03 +10:00
timer-ti-dm.h clocksource/drivers/timer-ti-dm: Save and restore timer TIOCP_CFG 2021-06-15 14:14:14 +02:00