From patchwork Tue Apr 24 14:05:28 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 8076 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 0C53523E1D for ; Tue, 24 Apr 2012 14:05:59 +0000 (UTC) Received: from mail-yx0-f180.google.com (mail-yx0-f180.google.com [209.85.213.180]) by fiordland.canonical.com (Postfix) with ESMTP id CE097A1892D for ; Tue, 24 Apr 2012 14:05:58 +0000 (UTC) Received: by yenl4 with SMTP id l4so411067yen.11 for ; Tue, 24 Apr 2012 07:05:58 -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=hreCoeTp2EO9NRyrHPx1LF0B3hQsmpCCkaJ3eKlSrYM=; b=OBPEZQbFCFvJzn6Kbarbqtg9VltUi9kqh/f9kNtvJxlsTjj+DiwE1l53VfbmdXB8pA UpSCXcksAjXoqjlWM5yga+7PsvBMOaQFhOoWtDMA4LYxaE/IlDTffMrAsud0ZCAq23iX GGlo10DtAmg7Xx7XCsf7ATf2K/SdkwrCkQ+oruyMjoCf66VsunsGuUXhoVt5qgWT8asd nyPpin0XI3SuaAQbCxxvHCq2uflNfu6GMQ7hjhAEVyqFgBMe90hzOmSw5Ddz8S/SBm/7 E08WyQ6pa7zxdSKyX+0a5pL56TuUM6npf3EdMhG6G13llwFgSe8aNCBgoeSCJAzuF0bB O1xQ== Received: by 10.50.196.230 with SMTP id ip6mr10082256igc.49.1335276357997; Tue, 24 Apr 2012 07:05: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.137.198 with SMTP id x6csp183970ibt; Tue, 24 Apr 2012 07:05:57 -0700 (PDT) Received: by 10.180.79.72 with SMTP id h8mr31861267wix.1.1335276356496; Tue, 24 Apr 2012 07:05:56 -0700 (PDT) Received: from mail-we0-f178.google.com (mail-we0-f178.google.com [74.125.82.178]) by mx.google.com with ESMTPS id w28si19326272weq.138.2012.04.24.07.05.56 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 07:05:56 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.178 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) client-ip=74.125.82.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.82.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 mail-we0-f178.google.com with SMTP id a13so605477wer.37 for ; Tue, 24 Apr 2012 07:05:56 -0700 (PDT) Received: by 10.180.104.230 with SMTP id gh6mr31458188wib.22.1335276356035; Tue, 24 Apr 2012 07:05:56 -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.52 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 07:05:53 -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 07/18][V3] ARM: OMAP4: cpuidle - remove omap4_idle_data initialization at boot time Date: Tue, 24 Apr 2012 16:05:28 +0200 Message-Id: <1335276339-11135-8-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: ALoCoQkrDCxeL3b9nL73Wx+8myjwSDcRPYDMA7+PvBW2dgQmbnZmMeN7eABFNiXpEaWNmHf3fS0H We initialized it at compile time, no need to do that at boot time. Signed-off-by: Daniel Lezcano Reviewed-by: Jean Pihet Reviewed-by: Santosh Shilimkar --- arch/arm/mach-omap2/cpuidle44xx.c | 24 ------------------------ 1 files changed, 0 insertions(+), 24 deletions(-) diff --git a/arch/arm/mach-omap2/cpuidle44xx.c b/arch/arm/mach-omap2/cpuidle44xx.c index f1410f1..be1617c 100644 --- a/arch/arm/mach-omap2/cpuidle44xx.c +++ b/arch/arm/mach-omap2/cpuidle44xx.c @@ -170,14 +170,6 @@ struct cpuidle_driver omap4_idle_driver = { .safe_state_index = 0, }; -static inline struct omap4_idle_statedata *_fill_cstate_usage( - struct cpuidle_device *dev, - int idx) -{ - struct omap4_idle_statedata *cx = &omap4_idle_data[idx]; - return cx; -} - /** * omap4_idle_init - Init routine for OMAP4 idle * @@ -186,7 +178,6 @@ static inline struct omap4_idle_statedata *_fill_cstate_usage( */ int __init omap4_idle_init(void) { - struct omap4_idle_statedata *cx; struct cpuidle_device *dev; unsigned int cpu_id = 0; @@ -199,21 +190,6 @@ int __init omap4_idle_init(void) dev = &per_cpu(omap4_idle_dev, cpu_id); dev->cpu = cpu_id; - cx = _fill_cstate_usage(dev, 0); - cx->cpu_state = PWRDM_POWER_ON; - cx->mpu_state = PWRDM_POWER_ON; - cx->mpu_logic_state = PWRDM_POWER_RET; - - cx = _fill_cstate_usage(dev, 1); - cx->cpu_state = PWRDM_POWER_OFF; - cx->mpu_state = PWRDM_POWER_RET; - cx->mpu_logic_state = PWRDM_POWER_RET; - - cx = _fill_cstate_usage(dev, 2); - cx->cpu_state = PWRDM_POWER_OFF; - cx->mpu_state = PWRDM_POWER_RET; - cx->mpu_logic_state = PWRDM_POWER_OFF; - cpuidle_register_driver(&omap4_idle_driver); if (cpuidle_register_device(dev)) {