mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-08 14:13:53 +00:00
576bd4962f
Add a clocksource ID for the x86 kvmclock. Also, for ptp_kvm, set the recently added struct system_counterval_t member cs_id to the clocksource ID (x86 kvmclock or ARM Generic Timer). In the future, get_device_system_crosststamp() will compare the clocksource ID in struct system_counterval_t, rather than the clocksource. For now, to avoid touching too many subsystems at once, extract the clocksource ID from the clocksource. The clocksource dereference will be removed once everything is converted over.. Signed-off-by: Peter Hilber <peter.hilber@opensynergy.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/r/20240201010453.2212371-5-peter.hilber@opensynergy.com
16 lines
302 B
C
16 lines
302 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _LINUX_CLOCKSOURCE_IDS_H
|
|
#define _LINUX_CLOCKSOURCE_IDS_H
|
|
|
|
/* Enum to give clocksources a unique identifier */
|
|
enum clocksource_ids {
|
|
CSID_GENERIC = 0,
|
|
CSID_ARM_ARCH_COUNTER,
|
|
CSID_X86_TSC_EARLY,
|
|
CSID_X86_TSC,
|
|
CSID_X86_KVM_CLK,
|
|
CSID_MAX,
|
|
};
|
|
|
|
#endif
|