From patchwork Tue Apr 24 14:05:22 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 8070 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 63B3A23E1D for ; Tue, 24 Apr 2012 14:05:47 +0000 (UTC) Received: from mail-gy0-f180.google.com (mail-gy0-f180.google.com [209.85.160.180]) by fiordland.canonical.com (Postfix) with ESMTP id 31246A18970 for ; Tue, 24 Apr 2012 14:05:47 +0000 (UTC) Received: by ghbz12 with SMTP id z12so415702ghb.11 for ; Tue, 24 Apr 2012 07:05:46 -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=ZmQZZDNYetxUchLWXjYee20dOXhdyT/vHrxN8WXmh3ZlmE7SrWVsJnx3+6HEKToAiB inu1+Zd+edpJT8lBq+1SZt00VNubQ59iIjvWLnmaJLiOqtQxlUvsND69oWhlkPcwLrx6 EzyIjSup5/SxCaC33ZvlwrkOnL6WJU2H6FZ0P6eB0Qxy8e178vKIJb/P3IwvyCsgFqbL dst7MTNgbLjrcE6vYlYqcUHbYKd/6H225PPfU2xDwqpH/0wum4lGpnznZ5PV+w+tdYbv bhfDEGnKLcEf+qQkMrS3kTlyQwOtE4kkff2hiUMNFBkoR8pjq2NMEZGFjSJ9HxX+GjSo 1rkg== Received: by 10.50.194.163 with SMTP id hx3mr10122815igc.49.1335276346306; Tue, 24 Apr 2012 07:05:46 -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.137.198 with SMTP id x6csp183943ibt; Tue, 24 Apr 2012 07:05:45 -0700 (PDT) Received: by 10.216.205.93 with SMTP id i71mr12406237weo.51.1335276344792; Tue, 24 Apr 2012 07:05:44 -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 bt8si13302092wib.40.2012.04.24.07.05.44 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 07:05:44 -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 wgbds12 with SMTP id ds12so684920wgb.31 for ; Tue, 24 Apr 2012 07:05:44 -0700 (PDT) Received: by 10.180.78.40 with SMTP id y8mr31554937wiw.15.1335276344142; Tue, 24 Apr 2012 07:05:44 -0700 (PDT) Received: from localhost.localdomain (AToulouse-159-1-17-225.w92-134.abo.wanadoo.fr. [92.134.64.225]) by mx.google.com with ESMTPS id fl2sm47121222wib.2.2012.04.24.07.05.42 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 07:05:43 -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, linaro-dev@lists.linaro.org, linux-arm-kernel@lists.infradead.org, patches@linaro.org Subject: [PATCH 01/18][V3] ARM: OMAP4: cpuidle - Remove unused valid field Date: Tue, 24 Apr 2012 16:05:22 +0200 Message-Id: <1335276339-11135-2-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1335276339-11135-1-git-send-email-daniel.lezcano@linaro.org> References: <1335276339-11135-1-git-send-email-daniel.lezcano@linaro.org> X-Gm-Message-State: ALoCoQkoaPqL/o6m22RUGp7LTZPvjRM7380xCXy5zbYsX5HOscrboDQ1SDjxt6KqpbsX+X3Kg/Cm 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;