From ec32910f4f871dce0f0e32dfb36f218fa1a2e869 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Mon, 24 Jan 2022 08:44:39 +0100 Subject: [PATCH] x86/time: drop pmt_scale_r Its only user, ns_to_acpi_pm_tick(), is unused. Signed-off-by: Jan Beulich Acked-by: Andrew Cooper --- xen/arch/x86/include/asm/time.h | 1 - xen/arch/x86/time.c | 7 ------- 2 files changed, 8 deletions(-) diff --git a/xen/arch/x86/include/asm/time.h b/xen/arch/x86/include/asm/time.h index f347311cc4..f06f2bfd8b 100644 --- a/xen/arch/x86/include/asm/time.h +++ b/xen/arch/x86/include/asm/time.h @@ -48,7 +48,6 @@ void pit_broadcast_exit(void); int pit_broadcast_is_available(void); uint64_t acpi_pm_tick_to_ns(uint64_t ticks); -uint64_t ns_to_acpi_pm_tick(uint64_t ns); uint64_t tsc_ticks2ns(uint64_t ticks); diff --git a/xen/arch/x86/time.c b/xen/arch/x86/time.c index 7fb760cf55..17f64a6ccd 100644 --- a/xen/arch/x86/time.c +++ b/xen/arch/x86/time.c @@ -536,12 +536,10 @@ static struct platform_timesource __initdata plt_pmtimer = }; static struct time_scale __read_mostly pmt_scale; -static struct time_scale __read_mostly pmt_scale_r; static __init int init_pmtmr_scale(void) { set_time_scale(&pmt_scale, ACPI_PM_FREQUENCY); - pmt_scale_r = scale_reciprocal(pmt_scale); return 0; } __initcall(init_pmtmr_scale); @@ -551,11 +549,6 @@ uint64_t acpi_pm_tick_to_ns(uint64_t ticks) return scale_delta(ticks, &pmt_scale); } -uint64_t ns_to_acpi_pm_tick(uint64_t ns) -{ - return scale_delta(ns, &pmt_scale_r); -} - /************************************************************ * PLATFORM TIMER 4: TSC */ -- 2.30.2