summaryrefslogtreecommitdiff
path: root/scripts/kconfig/tests/conditional_dep/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw@amazon.co.uk>2026-06-04 10:35:18 +0100
committerThomas Gleixner <tglx@kernel.org>2026-06-05 14:25:03 +0200
commitbc484a5096732cd858771cccd3164ec985bdc03d (patch)
treecdb7872103b2dd686abc8548ca6fc63913f19fee /scripts/kconfig/tests/conditional_dep/git@git.tavy.me:linux.git
parent19fa3e50644d2d47fca713b0df640f67dcd26634 (diff)
ptp: vmclock: Use hw_cycles from snapshot for precise TSC pairingrefs/merge-window/df7610115bad68761e38a34648dfd6f5cd161cd6
When the system clocksource is kvmclock or Hyper-V (not the TSC directly), vmclock_get_crosststamp() falls through to a separate get_cycles() call, losing the atomic pairing between the system time snapshot and the TSC reading. Now that ktime_get_snapshot_id() populates hw_cycles with the underlying TSC value for derived clocksources, use it when available. This gives a perfect (system_time, tsc) pairing for the device time calculation. The SUPPORT_KVMCLOCK wrapper is still needed to convert the TSC into kvmclock nanoseconds for system_counter->cycles, because otherwise get_device_system_crosststamp() can't interpret the result against the system clock. Signed-off-by: David Woodhouse <dwmw@amazon.co.uk> Signed-off-by: Thomas Gleixner <tglx@kernel.org> Assisted-by: Kiro:claude-opus-4.6-1m Link: https://patch.msgid.link/20260604095755.64849-4-dwmw2@infradead.org
Diffstat (limited to 'scripts/kconfig/tests/conditional_dep/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions