From patchwork Thu Nov 10 23:58:11 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 5038 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 27A8323E03 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 1CA3BA1831E 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.162.10 with SMTP id xw10mr5644603lab.12.1320969497957; 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 t7cs29170lak; Thu, 10 Nov 2011 15:58:17 -0800 (PST) Received: by 10.180.7.198 with SMTP id l6mr11578719wia.3.1320969495850; 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 cv1si5716951wib.107.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 vbyD1h0010htGy403byFiC; Fri, 11 Nov 2011 00:58:15 +0100 From: Daniel Lezcano To: patches@linaro.org Subject: [PATCH 4/6] acpi : remove 'time' field in acpi_processor_cx Date: Fri, 11 Nov 2011 00:58:11 +0100 Message-Id: <1320969493-27292-5-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 'time' field is used to sum the idle time but it is never used. 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 dd87355..142af72 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c @@ -861,7 +861,6 @@ static int acpi_idle_enter_simple(struct cpuidle_device *dev, cx->usage++; lapic_timer_state_broadcast(pr, cx, 0); - cx->time += idle_time; return index; } @@ -987,7 +986,6 @@ static int acpi_idle_enter_bm(struct cpuidle_device *dev, cx->usage++; lapic_timer_state_broadcast(pr, cx, 0); - cx->time += idle_time; return index; } diff --git a/include/acpi/processor.h b/include/acpi/processor.h index 1b6e65c..46bcf79 100644 --- a/include/acpi/processor.h +++ b/include/acpi/processor.h @@ -61,7 +61,6 @@ struct acpi_processor_cx { u32 latency; u32 power; u32 usage; - u64 time; u8 bm_sts_skip; char desc[ACPI_CX_DESC_LEN]; };