From patchwork Thu Jul 12 21:03:44 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 1190611 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id F37D040B20 for ; Thu, 12 Jul 2012 21:03:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933478Ab2GLVD4 (ORCPT ); Thu, 12 Jul 2012 17:03:56 -0400 Received: from mail-we0-f174.google.com ([74.125.82.174]:36883 "EHLO mail-we0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932948Ab2GLVDy (ORCPT ); Thu, 12 Jul 2012 17:03:54 -0400 Received: by mail-we0-f174.google.com with SMTP id x8so2012381wey.19 for ; Thu, 12 Jul 2012 14:03:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=S9CNTjRSEJqLFowr3ZrfiiKT5Dxq7Tu/GvAOfbOtf1A=; b=E6/St26R7WjRd2SC4+qeerfVEwXhf1YqN4avRFJYr5cygYU3F859wtvcMrHn8xW3O6 CNQL9wg9/EtT/DZkHRJkXI6fnMb4za12KuqKZ6qa2MmVi5TGKHki02zVRryttbbogwkN RoRDmj1QVcyyAUE5hN95ORoq7HXvFh2briqQJjN1OeOe5v8jojPbV1gUmOPu95IQNrqU 4hHrleR/yfmVJHnu4iPXWlfLkQRMlO28hMjHuVi0yHr4uAoo+N6PB+LiHKSyp7LAudYR bwPiSIDD4ef/PbIZ6f6IEOT0WK3k+zGuoMgjrIFS39pgvtu8Bk4LaJ7WNrOsqXCVTq84 Bx9A== Received: by 10.216.137.76 with SMTP id x54mr14693929wei.189.1342127033521; Thu, 12 Jul 2012 14:03:53 -0700 (PDT) Received: from localhost.localdomain (AToulouse-651-1-167-180.w90-11.abo.wanadoo.fr. [90.11.50.180]) by mx.google.com with ESMTPS id fb20sm1239619wid.1.2012.07.12.14.03.51 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 12 Jul 2012 14:03:52 -0700 (PDT) From: Daniel Lezcano To: rjw@sisk.pl, lenb@kernel.org Cc: linux-pm@vger.kernel.org, linux-acpi@vger.kernel.org Subject: [PATCH 3/5] acpi : remove usage from acpi_processor_cx structure Date: Thu, 12 Jul 2012 23:03:44 +0200 Message-Id: <1342127026-1526-3-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1342127026-1526-1-git-send-email-daniel.lezcano@linaro.org> References: <1342127026-1526-1-git-send-email-daniel.lezcano@linaro.org> X-Gm-Message-State: ALoCoQnfaeunTkJXERgFDfPk23RRHo5I6hc3wzLHnAcU8A0c3dsnfvRSyLEymlK1v5diXiDYzR7h Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org Remove the usage field as it is not used. 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 9808e60..d044588 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c @@ -761,7 +761,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; @@ -863,8 +862,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); cx->time += idle_time; 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); cx->time += idle_time; return index; diff --git a/include/acpi/processor.h b/include/acpi/processor.h index d09c94f..0957457 100644 --- a/include/acpi/processor.h +++ b/include/acpi/processor.h @@ -59,7 +59,6 @@ struct acpi_processor_cx { u8 entry_method; u32 latency; u32 power; - u32 usage; u64 time; u8 bm_sts_skip; char desc[ACPI_CX_DESC_LEN];