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: 2386531 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 1884ADFE76 for ; Wed, 3 Apr 2013 12:15:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760676Ab3DCMPg (ORCPT ); Wed, 3 Apr 2013 08:15:36 -0400 Received: from mail-we0-f180.google.com ([74.125.82.180]:37738 "EHLO mail-we0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760475Ab3DCMPe (ORCPT ); Wed, 3 Apr 2013 08:15:34 -0400 Received: by mail-we0-f180.google.com with SMTP id r5so1102665wey.11 for ; Wed, 03 Apr 2013 05:15:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=PXDDcgLYAdHwnbTTPIlQyoMsEOQeKgJLHGic4wbP0Ds=; b=fnqXxJbJJ8t2VyAZctxX4foT6sPSIf6BYbzE+UC7suXdoUe25S8334QijbQ86lFd3d vuVeIZAPp5hkHLPYhuCxyCYs7JpMnTjZ16zWcfs0JzO0ao4ASedZWl6930ykKpmuTQBz z0j9278fdOoWNdR+T12d3RISfN2jVLvF5SOppYJhs17hwqBh7HZEM4ZJNe3vDCYTuIj3 iUUaAZj1eOXj6J8gMFK52xjVwGslkcg7eF3S5ejlnaL/cmeDArRux/IXLYP1EqPTx3ay dvZJm0uyMCM6wOsUwut9N3jeQbr7Qc7Di9/uR/Xm+0L8y0Mx8oVhkn9stiP1IO6ixzmL E+nw== 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: ALoCoQnU5+5agVXRkJu9WB301FvhxViIgayFOEo03GDFLZ1je4FvfsLVCeh1h8Cy2WfB+1XkYpss Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org 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, };