From patchwork Wed Apr 4 20:12:35 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 7633 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 32E7423E47 for ; Wed, 4 Apr 2012 20:12:58 +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 EFEB6A18210 for ; Wed, 4 Apr 2012 20:12:57 +0000 (UTC) Received: by iage36 with SMTP id e36so1063293iag.11 for ; Wed, 04 Apr 2012 13:12:57 -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=YUab0dHgi007uO/TOp1c/N7rH3OchUSELwGpRb4UIxc0wnvsUVluhunCu83pl8a8K4 8vhHPdQgCaVGSkO5hExrWwCLUQcsAU2XriQr+GeQ1+WUQEPiIVveQTv1OqHUwTtSTcAD AR2XmToqJ0yisCVWXmvG2UgbdFs5ujVvccelR01fnaghKIGq/vPLeSSaVoK3Gzc2cHqX qlKIPxlz5BOqz98NNa/rGDyy/Kqh5UI/xxIsoIfhQs62yyrOkvkDX+xnt9YFyD77QiZg h2nBl1+kqQ6PmCFJQUFKJvRZpt4ApS5mK2VusMFnMFA2Ip04DhFgu4jJ0QKcBp89AHe2 kgzA== Received: by 10.50.168.67 with SMTP id zu3mr2851553igb.28.1333570377420; Wed, 04 Apr 2012 13:12:57 -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 f25csp56446iby; Wed, 4 Apr 2012 13:12:56 -0700 (PDT) Received: by 10.213.101.14 with SMTP id a14mr40253ebo.262.1333570375569; Wed, 04 Apr 2012 13:12:55 -0700 (PDT) Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by mx.google.com with ESMTPS id r8si2002364weq.31.2012.04.04.13.12.55 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 04 Apr 2012 13:12:55 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.172 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) client-ip=209.85.212.172; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.172 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) smtp.mail=daniel.lezcano@linaro.org Received: by wibhj6 with SMTP id hj6so751681wib.13 for ; Wed, 04 Apr 2012 13:12:55 -0700 (PDT) Received: by 10.216.133.19 with SMTP id p19mr2207405wei.118.1333570374895; Wed, 04 Apr 2012 13:12:54 -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 gd4sm6869495wib.6.2012.04.04.13.12.53 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 04 Apr 2012 13:12:54 -0700 (PDT) From: Daniel Lezcano To: santosh.shilimkar@ti.com, jean.pihet@newoldbits.com, khilman@ti.com, tony@atomide.com Cc: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, rob.lee@linaro.org, linaro-dev@lists.linaro.org, patches@linaro.org Subject: [PATCH 01/17][V2] ARM: OMAP4: cpuidle - Remove unused valid field Date: Wed, 4 Apr 2012 22:12:35 +0200 Message-Id: <1333570371-1389-2-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1333570371-1389-1-git-send-email-daniel.lezcano@linaro.org> References: <1333570371-1389-1-git-send-email-daniel.lezcano@linaro.org> X-Gm-Message-State: ALoCoQnLfS/9wv1f0kTcNKbHbUPFbP2p5Ig3h0J8LkcGRebS7ckocnw5BgvQIZJXZ5ESN8bAR82A 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;