[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] x86/time: drop pmt_scale_r
- To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Thu, 20 Jan 2022 16:46:33 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=+2s6acX7Mp4l29hkhStK2aeAbjGMhK198VaeYXNTH34=; b=d30Xb0pgYTsxBw18jSJvcWq2D5h4CbnSHzjP6WYDsmqAKFNaDrm7q4rMR5Q3aHh2CVhm4tLSmUvfBpCsRJPaxTX/blwNRnO6pybHnlOw6vYMKml5aZNxeYzNPBgTn3sPYT+2YDly4thwVIEb+SSFOjKu7TRQDKuVnqM3O9lFF88JV/9LqTTVPrL3eR0QFteEyskn0oUZ60+P/EF8w28M2Yk4UBB2m659lFz4+tV5wZCKEQiK17w7rgzsgJVhmG5G0cIxbn5BvKrBiPJ3t4fwgD9XeM7dT4/gAEJScy/YvuxbgHUqjl4FcY5EyiCNp0eHa3oO3iDXTdbL5GjMQ7J0mw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gNaJ2z/NHuoefp64bc1HiFqxmjlfIjbwZVST0UWh8DOUZKPwnCUSnK6TJGJLpyv0GYDLiMznj3cCSeLqAlTuRqAC+Yd/lTtAiTTsYaqRWz3NZ4MpbdHzllbGn6paWs+D4P55IF/nudYJVdDtxxCbKXGBXbykTSMyTf4ncX0JKJcVaD+6TgGUf72CrroLdNd9z1t9BslFjaLbQV6IJSMRbwGYZ+MR0CcnOqVdtXcJfOEErosb6ehs5ZS+k6ZUUgLccp+doYTQ9lAMM8pBCEAoCSgrZvBJkKXbT0q/dgvAaMYhGX6cYpajOTmIqqURrA0SwafigVbcAqRFYX8P0u/Rbw==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
- Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
- Delivery-date: Thu, 20 Jan 2022 15:46:48 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
Its only user, ns_to_acpi_pm_tick(), is unused.
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
--- 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);
--- a/xen/arch/x86/time.c
+++ b/xen/arch/x86/time.c
@@ -535,12 +535,10 @@ static struct platform_timesource __init
};
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);
@@ -550,11 +548,6 @@ uint64_t acpi_pm_tick_to_ns(uint64_t tic
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
*/
|