From patchwork Fri Mar 29 10:31:29 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 15761 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 61E7B23DEE for ; Fri, 29 Mar 2013 10:31:45 +0000 (UTC) Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com [209.85.220.181]) by fiordland.canonical.com (Postfix) with ESMTP id 13029A18D05 for ; Fri, 29 Mar 2013 10:31:44 +0000 (UTC) Received: by mail-vc0-f181.google.com with SMTP id hv10so368872vcb.26 for ; Fri, 29 Mar 2013 03:31:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=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; bh=PXDDcgLYAdHwnbTTPIlQyoMsEOQeKgJLHGic4wbP0Ds=; b=eTwxX6pc8oEZzMQt6H1evQPYGiwLaLY3BzeV+M5OSW0TNsK+5Ij1RTMALf6mszCu8+ I0H3rAop8e5Xcy1WNh1EOPe8JD4Fa3mLkZvpHy3hXYpzUpdp+XeFOevTLTwlWp20oCg+ JW1RxLxOTmpVZlXtOoVWQW2FFCGpZhXy87vwLJ9Zp4Tg4gbugHizI1sguNvtKh81EGaK yEd8KL7YUbMTaj/TJa7B70k91c3oSiwZvWd3EUzQz+WCRZ99oFyInRw0Tgo10P8fcKV3 TnUroQSNkEWE/699k9guyDAkCLs+vUlDODpDb60hdRc5aq66eG3g5rxm2CSYDLGSc5P6 8rBg== X-Received: by 10.220.106.14 with SMTP id v14mr1473258vco.2.1364553104557; Fri, 29 Mar 2013 03:31:44 -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.59.4.204 with SMTP id cg12csp54141ved; Fri, 29 Mar 2013 03:31:44 -0700 (PDT) X-Received: by 10.180.184.67 with SMTP id es3mr2646272wic.0.1364553103696; Fri, 29 Mar 2013 03:31:43 -0700 (PDT) Received: from mail-wi0-x22f.google.com ([2a00:1450:400c:c05::22f]) by mx.google.com with ESMTPS id l6si909923wic.9.2013.03.29.03.31.43 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 29 Mar 2013 03:31:43 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c05::22f is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) client-ip=2a00:1450:400c:c05::22f; Authentication-Results: mx.google.com; spf=neutral (google.com: 2a00:1450:400c:c05::22f 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-wi0-f175.google.com with SMTP id c10so4053243wiw.14 for ; Fri, 29 Mar 2013 03:31:43 -0700 (PDT) X-Received: by 10.180.97.233 with SMTP id ed9mr21348888wib.32.1364553103252; Fri, 29 Mar 2013 03:31:43 -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 q13sm2472076wie.0.2013.03.29.03.31.41 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 29 Mar 2013 03:31:42 -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 Subject: [PATCH 3/9] ARM: shmobile: cpuidle: remove useless WFI function Date: Fri, 29 Mar 2013 11:31:29 +0100 Message-Id: <1364553095-25110-3-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1364553095-25110-1-git-send-email-daniel.lezcano@linaro.org> References: <1364553095-25110-1-git-send-email-daniel.lezcano@linaro.org> X-Gm-Message-State: ALoCoQmj66hDmPpMjGI51BtnL22DEvA+Lj75CW+L5tVddC16kzKJcGNAYaAFcWGDq3xPf2DHkurJ 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, };