From patchwork Thu Nov 10 23:58:10 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 5037 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id CE28E23E03 for ; Thu, 10 Nov 2011 23:58:17 +0000 (UTC) Received: from mail-fx0-f52.google.com (mail-fx0-f52.google.com [209.85.161.52]) by fiordland.canonical.com (Postfix) with ESMTP id C2E72A1831E for ; Thu, 10 Nov 2011 23:58:17 +0000 (UTC) Received: by mail-fx0-f52.google.com with SMTP id n26so5002552faa.11 for ; Thu, 10 Nov 2011 15:58:17 -0800 (PST) Received: by 10.152.110.228 with SMTP id id4mr36697lab.19.1320969497622; Thu, 10 Nov 2011 15:58:17 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.152.40.7 with SMTP id t7cs29169lak; Thu, 10 Nov 2011 15:58:17 -0800 (PST) Received: by 10.180.100.34 with SMTP id ev2mr11231702wib.41.1320969495388; Thu, 10 Nov 2011 15:58:15 -0800 (PST) Received: from smtp.smtpout.orange.fr (smtp07.smtpout.orange.fr. [80.12.242.129]) by mx.google.com with ESMTP id j10si5723028wij.70.2011.11.10.15.58.15; Thu, 10 Nov 2011 15:58:15 -0800 (PST) Received-SPF: neutral (google.com: 80.12.242.129 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) client-ip=80.12.242.129; Authentication-Results: mx.google.com; spf=neutral (google.com: 80.12.242.129 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) smtp.mail=daniel.lezcano@linaro.org Received: from monster.dhcp.lxc ([92.134.91.32]) by mwinf5d65 with ME id vbyD1h0010htGy403byEiB; Fri, 11 Nov 2011 00:58:15 +0100 From: Daniel Lezcano To: patches@linaro.org Subject: [PATCH 3/6] acpi : remove 'latency_ticks' in acpi_processor_cx Date: Fri, 11 Nov 2011 00:58:10 +0100 Message-Id: <1320969493-27292-4-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1320969493-27292-1-git-send-email-daniel.lezcano@linaro.org> References: <1320969493-27292-1-git-send-email-daniel.lezcano@linaro.org> The latency_ticks field is used to store a value but it is never used. It is safe to remove it. Signed-off-by: Daniel Lezcano --- drivers/acpi/processor_idle.c | 2 -- include/acpi/processor.h | 1 - 2 files changed, 0 insertions(+), 3 deletions(-) diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index 24fe3af..dd87355 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c @@ -595,7 +595,6 @@ static void acpi_processor_power_verify_c3(struct acpi_processor *pr, */ cx->valid = 1; - cx->latency_ticks = cx->latency; /* * On older chipsets, BM_RLD needs to be set * in order for Bus Master activity to wake the @@ -628,7 +627,6 @@ static int acpi_processor_power_verify(struct acpi_processor *pr) if (!cx->address) break; cx->valid = 1; - cx->latency_ticks = cx->latency; /* Normalize latency */ break; case ACPI_STATE_C3: diff --git a/include/acpi/processor.h b/include/acpi/processor.h index 610f6fb..1b6e65c 100644 --- a/include/acpi/processor.h +++ b/include/acpi/processor.h @@ -59,7 +59,6 @@ struct acpi_processor_cx { u8 entry_method; u8 index; u32 latency; - u32 latency_ticks; u32 power; u32 usage; u64 time;