From patchwork Wed Apr 3 12:15:16 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 15856 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 B262623E21 for ; Wed, 3 Apr 2013 12:15:35 +0000 (UTC) Received: from mail-gg0-f197.google.com (mail-gg0-f197.google.com [209.85.161.197]) by fiordland.canonical.com (Postfix) with ESMTP id 3D4F6A18659 for ; Wed, 3 Apr 2013 12:15:35 +0000 (UTC) Received: by mail-gg0-f197.google.com with SMTP id k5sf1928822ggn.8 for ; Wed, 03 Apr 2013 05:15:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=PXDDcgLYAdHwnbTTPIlQyoMsEOQeKgJLHGic4wbP0Ds=; b=U6/MNMq/NHj0IRYF2/nRU87lD2auonux8iJ4S37xEpk9ygn1E4+WtlTLz58w6kXH3G 6/VfDW/Hef4SrDuFBqGVrdOKWJGMy+TKdJ794fnHH3FCjVR5qChGJHQsMkNsprAod/Uv iYk0m9wwLVl5unRHMtbzQFsL6y5Ucdxfh4zDsNPpYvBjloEa2V7mz92ym3fgGfcrm4Gs 1OHSY2VXvtxsBtLXfgba8bbgzTLGUW2gpdGcu/BGFjScU3kj05SB9wT0LljzslyTPZj+ Q1YkBTJxIvcA+C3ywqSwl8bcAiNufUtud66hlZ/Csok7wHQkdtDsq9Q97wYiwnlcVyIk G4QA== X-Received: by 10.224.172.200 with SMTP id m8mr1007940qaz.0.1364991334765; Wed, 03 Apr 2013 05:15:34 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.0.132 with SMTP id 4ls824456qee.56.gmail; Wed, 03 Apr 2013 05:15:34 -0700 (PDT) X-Received: by 10.220.8.4 with SMTP id f4mr986441vcf.20.1364991334640; Wed, 03 Apr 2013 05:15:34 -0700 (PDT) Received: from mail-vb0-x22c.google.com (mail-vb0-x22c.google.com [2607:f8b0:400c:c02::22c]) by mx.google.com with ESMTPS id xa7si4667716vdc.48.2013.04.03.05.15.34 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Apr 2013 05:15:34 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::22c is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c02::22c; Received: by mail-vb0-f44.google.com with SMTP id e12so378472vbg.17 for ; Wed, 03 Apr 2013 05:15:34 -0700 (PDT) X-Received: by 10.52.76.103 with SMTP id j7mr819892vdw.90.1364991334567; Wed, 03 Apr 2013 05:15:34 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.59.4.204 with SMTP id cg12csp167601ved; Wed, 3 Apr 2013 05:15:33 -0700 (PDT) X-Received: by 10.180.19.39 with SMTP id b7mr22584860wie.15.1364991333329; Wed, 03 Apr 2013 05:15:33 -0700 (PDT) Received: from mail-wg0-f51.google.com (mail-wg0-f51.google.com [74.125.82.51]) by mx.google.com with ESMTPS id x11si6575043wiv.98.2013.04.03.05.15.33 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Apr 2013 05:15:33 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.51 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) client-ip=74.125.82.51; Received: by mail-wg0-f51.google.com with SMTP id b12so1468765wgh.6 for ; Wed, 03 Apr 2013 05:15:33 -0700 (PDT) X-Received: by 10.194.242.163 with SMTP id wr3mr2443145wjc.35.1364991332931; Wed, 03 Apr 2013 05:15:32 -0700 (PDT) Received: from mai.home (AToulouse-654-1-486-7.w92-146.abo.wanadoo.fr. [92.146.77.7]) by mx.google.com with ESMTPS id bq19sm8729530wib.7.2013.04.03.05.15.29 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Apr 2013 05:15:31 -0700 (PDT) From: Daniel Lezcano To: rjw@sisk.pl Cc: linux-pm@vger.kernel.org, patches@linaro.org, linaro-kernel@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux@arm.linux.org.uk, rnayak@ti.com, swarren@wwwdotorg.org, linux-tegra@vger.kernel.org, horms+renesas@verge.net.au, santosh.shilimkar@ti.com, arnd@arndb.de, lenb@kernel.org, nsekhar@ti.com, josephl@nvidia.com, deepthi@linux.vnet.ibm.com Subject: [PATCH 3/9] ARM: shmobile: cpuidle: remove useless WFI function Date: Wed, 3 Apr 2013 14:15:16 +0200 Message-Id: <1364991322-20585-3-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1364991322-20585-1-git-send-email-daniel.lezcano@linaro.org> References: <1364991322-20585-1-git-send-email-daniel.lezcano@linaro.org> X-Gm-Message-State: ALoCoQlFqS+WRcq0WPzO9HGj1aBKQ356GgXFeyvvyQQ+PCNpRS8FxjWhHivdhk67m/UQBcwntfVc X-Original-Sender: daniel.lezcano@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::22c is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Remove the shmobile_enter_wfi function which is the same as the common WFI enter function from the arm cpuidle driver defined with the ARM_CPUIDLE_WFI_STATE macro. Signed-off-by: Daniel Lezcano Acked-by: Simon Horman --- arch/arm/mach-shmobile/cpuidle.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/arch/arm/mach-shmobile/cpuidle.c b/arch/arm/mach-shmobile/cpuidle.c index 068f9ca..c872ae8 100644 --- a/arch/arm/mach-shmobile/cpuidle.c +++ b/arch/arm/mach-shmobile/cpuidle.c @@ -16,20 +16,12 @@ #include #include -int shmobile_enter_wfi(struct cpuidle_device *dev, struct cpuidle_driver *drv, - int index) -{ - cpu_do_idle(); - return 0; -} - static struct cpuidle_device shmobile_cpuidle_dev; static struct cpuidle_driver shmobile_cpuidle_default_driver = { .name = "shmobile_cpuidle", .owner = THIS_MODULE, .en_core_tk_irqen = 1, .states[0] = ARM_CPUIDLE_WFI_STATE, - .states[0].enter = shmobile_enter_wfi, .safe_state_index = 0, /* C1 */ .state_count = 1, };