mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-31 16:38:12 +00:00
a8cf291bda
Currently, the ptp_kvm module contains a lot of x86-specific code. Let's move this code into a new arch-specific file in the same directory, and rename the arch-independent file to ptp_kvm_common.c. Acked-by: Richard Cochran <richardcochran@gmail.com> Reviewed-by: Andre Przywara <andre.przywara@arm.com> Signed-off-by: Jianyong Wu <jianyong.wu@arm.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20201209060932.212364-4-jianyong.wu@arm.com
19 lines
430 B
C
19 lines
430 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Virtual PTP 1588 clock for use with KVM guests
|
|
*
|
|
* Copyright (C) 2017 Red Hat Inc.
|
|
*/
|
|
|
|
#ifndef _PTP_KVM_H_
|
|
#define _PTP_KVM_H_
|
|
|
|
struct timespec64;
|
|
struct clocksource;
|
|
|
|
int kvm_arch_ptp_init(void);
|
|
int kvm_arch_ptp_get_clock(struct timespec64 *ts);
|
|
int kvm_arch_ptp_get_crosststamp(u64 *cycle,
|
|
struct timespec64 *tspec, struct clocksource **cs);
|
|
|
|
#endif /* _PTP_KVM_H_ */
|