From patchwork Wed Apr 4 09:42:03 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 7598 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 EDB8223E4C for ; Wed, 4 Apr 2012 09:42:26 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id B6A73A1800C for ; Wed, 4 Apr 2012 09:42:26 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id e36so109604iag.11 for ; Wed, 04 Apr 2012 02:42:26 -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:in-reply-to:references :x-gm-message-state; bh=YSYx6qqC8SYRiFH4Dr/qji4qo/ks4GOM0tJ1dSuGiDI=; b=cI01C1rsymvFEmV6mwcH/VZ2usdI8DHJ9C4akNOY/cG9MdpEVPRz3sOLmB0z9Ks6En ayHV7JisZN0I8Loaj+kJz8v7bc8MU4bNZqxhUJrgLZWwaNmLTkXaSooV69qYLgIuLqLd 9dVsl8xaq6LuOWOD8Xwm+D9PLYE2qJffZPPcs6aVUNgd2PgfTtwG6BZTqw/O/s69/CDE BKXHQfmaTwDCuMPBz6bjTjmvkw0lF2LL82hw4Xvu9jotco8+DnpAQ5l0q2zOmDsafAkJ 7P2B9elo6WcF9V9kjVlhbcRGI8xoIxDgWJ2U/vjIhTrSahJzw6i7UWnGLuKQzyoLO6Uv pw6A== Received: by 10.50.168.67 with SMTP id zu3mr934976igb.28.1333532546534; Wed, 04 Apr 2012 02:42:26 -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.164.217 with SMTP id f25csp31223iby; Wed, 4 Apr 2012 02:42:25 -0700 (PDT) Received: by 10.216.45.146 with SMTP id p18mr986292web.47.1333532544240; Wed, 04 Apr 2012 02:42:24 -0700 (PDT) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx.google.com with ESMTPS id w74si119385weq.59.2012.04.04.02.42.23 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 04 Apr 2012 02:42:24 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.50 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) client-ip=74.125.82.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.82.50 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) smtp.mail=daniel.lezcano@linaro.org Received: by mail-wg0-f50.google.com with SMTP id ds12so74938wgb.31 for ; Wed, 04 Apr 2012 02:42:23 -0700 (PDT) Received: by 10.180.84.164 with SMTP id a4mr3705500wiz.2.1333532543746; Wed, 04 Apr 2012 02:42:23 -0700 (PDT) Received: from localhost.localdomain (AToulouse-159-1-7-136.w90-60.abo.wanadoo.fr. [90.60.242.136]) by mx.google.com with ESMTPS id bx13sm3462265wib.10.2012.04.04.02.42.22 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 04 Apr 2012 02:42:23 -0700 (PDT) From: Daniel Lezcano To: tony@atomide.com, khilman@ti.com Cc: j-pihet@ti.com, santosh.shilimkar@ti.com, rob.lee@linaro.org, linaro-dev@lists.linaro.org, patches@linaro.org Subject: [PATCH 01/17] ARM: OMAP4: cpuidle - Remove unused valid field Date: Wed, 4 Apr 2012 11:42:03 +0200 Message-Id: <1333532539-10298-2-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1333532539-10298-1-git-send-email-daniel.lezcano@linaro.org> References: <1333532539-10298-1-git-send-email-daniel.lezcano@linaro.org> X-Gm-Message-State: ALoCoQkP7r8mREPhOirVbe4M0z/QvQVSmcX5AUEiz93786QpES2Hxb2O59QTnmNplKnHiKVOk6jd The 'valid' field is never used in the code, let's remove it. Signed-off-by: Daniel Lezcano Reviewed-by: Jean Pihet Reviewed-by: Santosh Shilimkar --- arch/arm/mach-omap2/cpuidle44xx.c | 9 +++------ 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-omap2/cpuidle44xx.c b/arch/arm/mach-omap2/cpuidle44xx.c index f386cbe..ee0bc50 100644 --- a/arch/arm/mach-omap2/cpuidle44xx.c +++ b/arch/arm/mach-omap2/cpuidle44xx.c @@ -29,16 +29,15 @@ struct omap4_idle_statedata { u32 cpu_state; u32 mpu_logic_state; u32 mpu_state; - u8 valid; }; static struct cpuidle_params cpuidle_params_table[] = { /* C1 - CPU0 ON + CPU1 ON + MPU ON */ - {.exit_latency = 2 + 2 , .target_residency = 5, .valid = 1}, + {.exit_latency = 2 + 2 , .target_residency = 5 }, /* C2- CPU0 OFF + CPU1 OFF + MPU CSWR */ - {.exit_latency = 328 + 440 , .target_residency = 960, .valid = 1}, + {.exit_latency = 328 + 440 , .target_residency = 960 }, /* C3 - CPU0 OFF + CPU1 OFF + MPU OSWR */ - {.exit_latency = 460 + 518 , .target_residency = 1100, .valid = 1}, + {.exit_latency = 460 + 518 , .target_residency = 1100 }, }; #define OMAP4_NUM_STATES ARRAY_SIZE(cpuidle_params_table) @@ -155,7 +154,6 @@ static inline struct omap4_idle_statedata *_fill_cstate_usage( struct omap4_idle_statedata *cx = &omap4_idle_data[idx]; struct cpuidle_state_usage *state_usage = &dev->states_usage[idx]; - cx->valid = cpuidle_params_table[idx].valid; cpuidle_set_statedata(state_usage, cx); return cx; @@ -191,7 +189,6 @@ int __init omap4_idle_init(void) _fill_cstate(drv, 0, "MPUSS ON"); drv->safe_state_index = 0; cx = _fill_cstate_usage(dev, 0); - cx->valid = 1; /* C1 is always valid */ cx->cpu_state = PWRDM_POWER_ON; cx->mpu_state = PWRDM_POWER_ON; cx->mpu_logic_state = PWRDM_POWER_RET;