diff options
author | Jan Beulich <jbeulich@suse.com> | 2012-09-21 13:45:08 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2012-09-21 13:45:08 +0200 |
commit | 288078b499281a2ef1bca5244c3fb1786f7efcc7 (patch) | |
tree | c7d19af9f8fb9fe7a64091f890ac64ee3c2c1999 /xen/arch/x86/acpi | |
parent | bb544585137259545d4adc9afe6eed8dc7c7376d (diff) | |
download | xen-288078b499281a2ef1bca5244c3fb1786f7efcc7.tar.gz xen-288078b499281a2ef1bca5244c3fb1786f7efcc7.tar.bz2 xen-288078b499281a2ef1bca5244c3fb1786f7efcc7.zip |
cpuidle: remove unused latency_ticks member
... and code used only for initializing it.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/arch/x86/acpi')
-rw-r--r-- | xen/arch/x86/acpi/cpu_idle.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/xen/arch/x86/acpi/cpu_idle.c b/xen/arch/x86/acpi/cpu_idle.c index af19d0687d..db9a3d89fd 100644 --- a/xen/arch/x86/acpi/cpu_idle.c +++ b/xen/arch/x86/acpi/cpu_idle.c @@ -74,7 +74,6 @@ static void (*lapic_timer_off)(void); static void (*lapic_timer_on)(void); static uint64_t (*__read_mostly tick_to_ns)(uint64_t) = acpi_pm_tick_to_ns; -static uint64_t (*__read_mostly ns_to_tick)(uint64_t) = ns_to_acpi_pm_tick; static void (*pm_idle_save) (void) __read_mostly; unsigned int max_cstate __read_mostly = ACPI_PROCESSOR_MAX_POWER - 1; @@ -225,7 +224,6 @@ __initcall(cpu_idle_key_init); static uint64_t get_stime_tick(void) { return (uint64_t)NOW(); } static uint64_t stime_ticks_elapsed(uint64_t t1, uint64_t t2) { return t2 - t1; } static uint64_t stime_tick_to_ns(uint64_t ticks) { return ticks; } -static uint64_t ns_to_stime_tick(uint64_t ns) { return ns; } static uint64_t get_acpi_pm_tick(void) { return (uint64_t)inl(pmtmr_ioport); } static uint64_t acpi_pm_ticks_elapsed(uint64_t t1, uint64_t t2) @@ -665,7 +663,6 @@ static int cpuidle_init_cpu(int cpu) get_tick = get_stime_tick; ticks_elapsed = stime_ticks_elapsed; tick_to_ns = stime_tick_to_ns; - ns_to_tick = ns_to_stime_tick; } acpi_power = xzalloc(struct acpi_processor_power); @@ -943,7 +940,6 @@ static void set_cx( cx->latency = xen_cx->latency; cx->power = xen_cx->power; - cx->latency_ticks = ns_to_tick(cx->latency * 1000UL); cx->target_residency = cx->latency * latency_factor; if ( cx->type == ACPI_STATE_C1 || cx->type == ACPI_STATE_C2 ) acpi_power->safe_state = cx; |