mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-28 16:56:26 +00:00
b152688c91
The clocksource pointer in struct system_counterval_t is not evaluated any more. Remove the code setting the member, and the member itself. 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-8-peter.hilber@opensynergy.com
33 lines
567 B
C
33 lines
567 B
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
/*
|
|
* Virtual PTP 1588 clock for use with KVM guests
|
|
* Copyright (C) 2019 ARM Ltd.
|
|
* All Rights Reserved
|
|
*/
|
|
|
|
#include <linux/arm-smccc.h>
|
|
#include <linux/ptp_kvm.h>
|
|
|
|
#include <asm/arch_timer.h>
|
|
#include <asm/hypervisor.h>
|
|
|
|
int kvm_arch_ptp_init(void)
|
|
{
|
|
int ret;
|
|
|
|
ret = kvm_arm_hyp_service_available(ARM_SMCCC_KVM_FUNC_PTP);
|
|
if (ret <= 0)
|
|
return -EOPNOTSUPP;
|
|
|
|
return 0;
|
|
}
|
|
|
|
void kvm_arch_ptp_exit(void)
|
|
{
|
|
}
|
|
|
|
int kvm_arch_ptp_get_clock(struct timespec64 *ts)
|
|
{
|
|
return kvm_arch_ptp_get_crosststamp(NULL, ts, NULL);
|
|
}
|