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: 2364951 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 A8FCEDFB79 for ; Fri, 29 Mar 2013 10:31:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753149Ab3C2Kbp (ORCPT ); Fri, 29 Mar 2013 06:31:45 -0400 Received: from mail-wi0-f173.google.com ([209.85.212.173]:58576 "EHLO mail-wi0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753019Ab3C2Kbo (ORCPT ); Fri, 29 Mar 2013 06:31:44 -0400 Received: by mail-wi0-f173.google.com with SMTP id ez12so4053863wid.12 for ; Fri, 29 Mar 2013 03:31:43 -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=VMozR19HRAT1ZlXekEiMGSEWvltpwQ5nlbpamxq5uEPvuMN4gzPhescnYV13IDXbsY 0IbMpR3KRVMFtZ8CYVmnzCM0ltSz96tDsLHaAjXsZW5+VjuKinca0wkqZ1s2CNO6kJJs 2UeEQX9Y8tvYGQLIQHO5w19rGDmq+Tse6MWkoKvB40zHdj4F21sF3VDq6CFf9B0m4fDc jKqAMtS4nQt0vaaUmKjf1rOQmsq+yVxsGQWEqHb2aOCQ5G9xwTolJlgKVy9BC0P4Sgs7 E5Lh6T8urSPua3v1qyol8qipHW8Ahcr5iD7oaHzWgUk2D5u92KwmAK8RbYoGzVgzS3U0 Newg== 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: ALoCoQm0P8nHnQXzZd/dWOlZ0QO1pA3uV9Z1uH+SFDvEuSObKtfFaa1tObVbUScx+nThXoAa04At 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, };