mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
x86/time: drop pmt_scale_r
Its only user, ns_to_acpi_pm_tick(), is unused. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
1 parent
dd8238a611
commit
ec32910f4f
2 files changed
-8
No files matched your search
@@ -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);
|
||||
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||