diff options
author | Peter Hilber <peter.hilber@opensynergy.com> | 2024-02-01 02:04:52 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2024-02-07 17:05:21 +0100 |
commit | b152688c91313ab4073cff4a5e63ff4cc491c358 (patch) | |
tree | 61243a08ac87b6c71a994955600dc8aa92c9bb35 /drivers/ptp/ptp_kvm_x86.c | |
parent | 4b7f521229ef4eee06848427d865954e6e0e3675 (diff) | |
download | lwn-b152688c91313ab4073cff4a5e63ff4cc491c358.tar.gz lwn-b152688c91313ab4073cff4a5e63ff4cc491c358.zip |
treewide: Remove system_counterval_t.cs, which is never read
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
Diffstat (limited to 'drivers/ptp/ptp_kvm_x86.c')
-rw-r--r-- | drivers/ptp/ptp_kvm_x86.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/ptp/ptp_kvm_x86.c b/drivers/ptp/ptp_kvm_x86.c index 2782442922cb..617c8d6706d3 100644 --- a/drivers/ptp/ptp_kvm_x86.c +++ b/drivers/ptp/ptp_kvm_x86.c @@ -93,7 +93,6 @@ int kvm_arch_ptp_get_clock(struct timespec64 *ts) } int kvm_arch_ptp_get_crosststamp(u64 *cycle, struct timespec64 *tspec, - struct clocksource **cs, enum clocksource_ids *cs_id) { struct pvclock_vcpu_time_info *src; @@ -124,7 +123,6 @@ int kvm_arch_ptp_get_crosststamp(u64 *cycle, struct timespec64 *tspec, *cycle = __pvclock_read_cycles(src, clock_pair->tsc); } while (pvclock_read_retry(src, version)); - *cs = &kvm_clock; *cs_id = CSID_X86_KVM_CLK; return 0; |