From patchwork Tue Jul 24 21:12:29 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 10231 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 6324E23E02 for ; Tue, 24 Jul 2012 21:12:36 +0000 (UTC) Received: from mail-gh0-f180.google.com (mail-gh0-f180.google.com [209.85.160.180]) by fiordland.canonical.com (Postfix) with ESMTP id 28C12A189F6 for ; Tue, 24 Jul 2012 21:12:36 +0000 (UTC) Received: by ghbz12 with SMTP id z12so30264ghb.11 for ; Tue, 24 Jul 2012 14:12:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:x-gm-message-state; bh=y6P5W6mFmJ3ik7g3AmWETIe2TXj4RoM+4bN88YQECqs=; b=dixLGnTuEG/j622qzRVh/wLuCjz8C2ojvPZSdE0Fc0NRwrfbKX2l0Rs1LlG+cRvWt6 3wsrJM00RhsPOnKvHEBlTZ1tZeqF8Ud2nRKhrXPtbo9QLvebRQgMA3b+L0HHdh8pBBU9 35ajZYhS1xC/KWPUd/ZnCXAprCZlzWT/dyagVSWhh+TshzJcNlAJhY+9ejyCeGjpAh52 Rf6pAXFX86E34s5OMZkr2P5T6xvr5wW2trycv7WTxH1V37YmxEtx2nU7N7JmCEdZgYG+ 2voTm0YOK6A5J8LKNW4m5CWv6Rb7FrdbH0gnGEfl+yZfl7VSiHSG434UJrDs+E9Cq7iF wguQ== Received: by 10.43.95.202 with SMTP id cd10mr18401969icc.21.1343164355288; Tue, 24 Jul 2012 14:12:35 -0700 (PDT) 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.231.153.7 with SMTP id i7csp82980ibw; Tue, 24 Jul 2012 14:12:34 -0700 (PDT) Received: by 10.180.97.106 with SMTP id dz10mr10318031wib.21.1343164353301; Tue, 24 Jul 2012 14:12:33 -0700 (PDT) Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by mx.google.com with ESMTPS id d14si21791720wec.143.2012.07.24.14.12.32 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Jul 2012 14:12:33 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.178 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) client-ip=209.85.212.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.178 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) smtp.mail=daniel.lezcano@linaro.org Received: by wibhr14 with SMTP id hr14so12917wib.13 for ; Tue, 24 Jul 2012 14:12:32 -0700 (PDT) Received: by 10.216.134.216 with SMTP id s66mr4841923wei.26.1343164352464; Tue, 24 Jul 2012 14:12:32 -0700 (PDT) Received: from localhost.localdomain (AToulouse-651-1-229-166.w90-38.abo.wanadoo.fr. [90.38.44.166]) by mx.google.com with ESMTPS id df4sm6246085wib.4.2012.07.24.14.12.30 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Jul 2012 14:12:31 -0700 (PDT) From: Daniel Lezcano To: rjw@sisk.pl Cc: lenb@kernel.org, linux-acpi@vger.kernel.org, xen-devel@lists.xensource.com, linux-pm@vger.kernel.org, konrad.wilk@oracle.com, patches@linaro.org, linaro-dev@lists.linaro.org Subject: [PATCH] acpi : remove power from acpi_processor_cx structure Date: Tue, 24 Jul 2012 23:12:29 +0200 Message-Id: <1343164349-28550-1-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.5.4 X-Gm-Message-State: ALoCoQlx1UMn1GlRR9n9FC/j0+4P3Pr8QRf1OHPE0o5aUnBknaMEp61Tcsw5OYiNIEGb9MIvO50Y Remove the power field as it is not used. Signed-off-by: Daniel Lezcano Cc: Konrad Rzeszutek Wilk --- drivers/acpi/processor_idle.c | 2 -- drivers/xen/xen-acpi-processor.c | 1 - include/acpi/processor.h | 1 - 3 files changed, 0 insertions(+), 4 deletions(-) diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index e589c19..90582fb 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c @@ -483,8 +483,6 @@ static int acpi_processor_get_power_info_cst(struct acpi_processor *pr) if (obj->type != ACPI_TYPE_INTEGER) continue; - cx.power = obj->integer.value; - current_count++; memcpy(&(pr->power.states[current_count]), &cx, sizeof(cx)); diff --git a/drivers/xen/xen-acpi-processor.c b/drivers/xen/xen-acpi-processor.c index 7ff2569..7ef9c1d 100644 --- a/drivers/xen/xen-acpi-processor.c +++ b/drivers/xen/xen-acpi-processor.c @@ -98,7 +98,6 @@ static int push_cxx_to_hypervisor(struct acpi_processor *_pr) dst_cx->type = cx->type; dst_cx->latency = cx->latency; - dst_cx->power = cx->power; dst_cx->dpcnt = 0; set_xen_guest_handle(dst_cx->dp, NULL); diff --git a/include/acpi/processor.h b/include/acpi/processor.h index 64ec644..db427fa 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 power; u8 bm_sts_skip; char desc[ACPI_CX_DESC_LEN]; };