From patchwork Thu Nov 10 23:58:12 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 5039 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 C921223E03 for ; Thu, 10 Nov 2011 23:58:18 +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 BCB3FA1831E for ; Thu, 10 Nov 2011 23:58:18 +0000 (UTC) Received: by mail-fx0-f52.google.com with SMTP id n26so5002552faa.11 for ; Thu, 10 Nov 2011 15:58:18 -0800 (PST) Received: by 10.152.105.226 with SMTP id gp2mr5628331lab.28.1320969498619; Thu, 10 Nov 2011 15:58:18 -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 t7cs29171lak; Thu, 10 Nov 2011 15:58:18 -0800 (PST) Received: by 10.227.198.77 with SMTP id en13mr5983099wbb.28.1320969496347; Thu, 10 Nov 2011 15:58:16 -0800 (PST) Received: from smtp.smtpout.orange.fr (smtp07.smtpout.orange.fr. [80.12.242.129]) by mx.google.com with ESMTP id el19si5565662wbb.32.2011.11.10.15.58.16; Thu, 10 Nov 2011 15:58:16 -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 vbyD1h0010htGy403byFiE; Fri, 11 Nov 2011 00:58:16 +0100 From: Daniel Lezcano To: patches@linaro.org Subject: [PATCH 5/6] acpi : remove 'usage' field in acpi_processor_cx Date: Fri, 11 Nov 2011 00:58:12 +0100 Message-Id: <1320969493-27292-6-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 usage field is incremented but the resulting value is never used in the code. Signed-off-by: Daniel Lezcano --- drivers/acpi/processor_idle.c | 5 ----- include/acpi/processor.h | 1 - 2 files changed, 0 insertions(+), 6 deletions(-) diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index 142af72..4b9ebd5 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c @@ -778,7 +778,6 @@ static int acpi_idle_enter_c1(struct cpuidle_device *dev, dev->last_residency = (int)idle_time; local_irq_enable(); - cx->usage++; lapic_timer_state_broadcast(pr, cx, 0); return index; @@ -858,8 +857,6 @@ static int acpi_idle_enter_simple(struct cpuidle_device *dev, if (cx->entry_method != ACPI_CSTATE_FFH) current_thread_info()->status |= TS_POLLING; - cx->usage++; - lapic_timer_state_broadcast(pr, cx, 0); return index; } @@ -983,8 +980,6 @@ static int acpi_idle_enter_bm(struct cpuidle_device *dev, if (cx->entry_method != ACPI_CSTATE_FFH) current_thread_info()->status |= TS_POLLING; - cx->usage++; - lapic_timer_state_broadcast(pr, cx, 0); return index; } diff --git a/include/acpi/processor.h b/include/acpi/processor.h index 46bcf79..bc3449a 100644 --- a/include/acpi/processor.h +++ b/include/acpi/processor.h @@ -60,7 +60,6 @@ struct acpi_processor_cx { u8 index; u32 latency; u32 power; - u32 usage; u8 bm_sts_skip; char desc[ACPI_CX_DESC_LEN]; };