From patchwork Mon Mar 25 17:55:39 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 15623 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 A018523E2C for ; Mon, 25 Mar 2013 17:56:20 +0000 (UTC) Received: from mail-ve0-f173.google.com (mail-ve0-f173.google.com [209.85.128.173]) by fiordland.canonical.com (Postfix) with ESMTP id 59B05A194B3 for ; Mon, 25 Mar 2013 17:56:20 +0000 (UTC) Received: by mail-ve0-f173.google.com with SMTP id cy12so358621veb.4 for ; Mon, 25 Mar 2013 10:56:19 -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=U44WYlxKTNqy6TOyhN0NGoE+1b/IEVY/aSiuC0K261Q=; b=QIo5wpzCrHQJ1tvEBOrlW5mTl9VdVATTKAVjdzaMpnzlvPRVwWI3AVedG1Clq5BD8t BhbURVuackErPy0DS9j8x7rD6LFIRsrJViIbPZ6D0Ph0TdjJkNZJwQu8hOQnnxCVUSpt UhP2fBbovvE/4/3hmOLI2EIyn7AMFgYm+1s2jhFdDUXA0D61u9o05MlAgdhE/9e73Kv3 JvOJnPtI2+idKniAcuZsCr8nHP/Z+fsrDfc1YbcStxoEMCcZqjAhNuksUG2EEWhhAY6w vPHYKn3Lqg0WvSNeOGPd/teprzC2QhM0zZt73y6SXYnVCJx500Zy3hLHlVLgZnPZ41Ej JFoQ== X-Received: by 10.52.76.103 with SMTP id j7mr14519550vdw.90.1364234179912; Mon, 25 Mar 2013 10:56:19 -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 cg12csp37252ved; Mon, 25 Mar 2013 10:56:18 -0700 (PDT) X-Received: by 10.194.120.169 with SMTP id ld9mr19778828wjb.24.1364234177697; Mon, 25 Mar 2013 10:56:17 -0700 (PDT) Received: from mail-we0-x22c.google.com ([2a00:1450:400c:c03::22c]) by mx.google.com with ESMTPS id x8si7400994wib.118.2013.03.25.10.56.17 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 Mar 2013 10:56:17 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c03::22c is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) client-ip=2a00:1450:400c:c03::22c; Authentication-Results: mx.google.com; spf=neutral (google.com: 2a00:1450:400c:c03::22c 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-f172.google.com with SMTP id r3so1609175wey.3 for ; Mon, 25 Mar 2013 10:56:17 -0700 (PDT) X-Received: by 10.194.77.110 with SMTP id r14mr19964405wjw.2.1364234177318; Mon, 25 Mar 2013 10:56:17 -0700 (PDT) Received: from mai.home (AToulouse-654-1-426-131.w2-6.abo.wanadoo.fr. [2.6.209.131]) by mx.google.com with ESMTPS id s2sm23927749wib.4.2013.03.25.10.56.14 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 Mar 2013 10:56:16 -0700 (PDT) From: Daniel Lezcano To: rjw@sisk.pl, tglx@linutronix.de Cc: patches@linaro.org, linaro-kernel@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux@maxim.org.za, nicolas.ferre@atmel.com, plagnioj@jcrosoft.com, lenb@kernel.org, nsekhar@ti.com, kevin.hilman@linaro.org, horms@verge.net.au, magnus.damm@gmail.com, kernel@pengutronix.de, ben-linux@fluff.org, kgene.kim@samsung.com, rob.herring@calxeda.com, jason@lakedaemon.net, andrew@lunn.ch, linus.walleij@linaro.org, linux@arm.linux.org.uk Subject: [PATCH 14/15] ARM: shmobile: cpuidle: remove useless WFI function Date: Mon, 25 Mar 2013 18:55:39 +0100 Message-Id: <1364234140-514-15-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1364234140-514-1-git-send-email-daniel.lezcano@linaro.org> References: <1364234140-514-1-git-send-email-daniel.lezcano@linaro.org> X-Gm-Message-State: ALoCoQnV42q3OFi+LE3cUUOWF6PxmlMWrBo7j0jp/9J9DLrMhWzVH9sOfdrMH7ghk4L+MSahuyCx 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, };