From patchwork Mon Oct 14 20:15:21 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 21009 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f198.google.com (mail-ob0-f198.google.com [209.85.214.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9AE4F20DA3 for ; Mon, 14 Oct 2013 20:15:27 +0000 (UTC) Received: by mail-ob0-f198.google.com with SMTP id va2sf28842438obc.1 for ; Mon, 14 Oct 2013 13:15:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=eqB3nj6qt1lThrvdcwhsz89+Y9NVd2q/o9yt3Cnbqws=; b=VZg73XQtUUdC82Jf9pul92y2WZ6Z02YNIdfkPovjJuzwCE4Hcc+olRtlss/sTOujvl RAPzTbaLSgS5zQ9WctegU/pYb3kRrv4fBUem1/ZdbiH+DYFBlTfg3K+WHk/zMQA0PvSJ ns9FBoePFcHOQBQtsjsqsIxVUk9pXL3QM7xqeuO9qHZyIN3ylSaVk5S916I8ywyWm22M VsG+mqtprSBoRpucB99+7okf0JCSynOhDB78CmK5dnTacCGMEu2odp95iUs3jHDIBvQW pvSyIrOxWGpijLQvzYiRBGW099RWL/09Yx/XgONhKavcpjcdyYoo2BgpUzNPejmDu8eh fGUQ== X-Received: by 10.182.16.199 with SMTP id i7mr2671459obd.42.1381781726996; Mon, 14 Oct 2013 13:15:26 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.94.114 with SMTP id db18ls2237172qeb.66.gmail; Mon, 14 Oct 2013 13:15:26 -0700 (PDT) X-Received: by 10.220.181.136 with SMTP id by8mr36809529vcb.11.1381781726860; Mon, 14 Oct 2013 13:15:26 -0700 (PDT) Received: from mail-ve0-f170.google.com (mail-ve0-f170.google.com [209.85.128.170]) by mx.google.com with ESMTPS id z11si21544591vcj.128.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 14 Oct 2013 13:15:26 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.170 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.170; Received: by mail-ve0-f170.google.com with SMTP id db12so189157veb.29 for ; Mon, 14 Oct 2013 13:15:26 -0700 (PDT) X-Gm-Message-State: ALoCoQnGJKoYonlpsHCj/8ec3+g0BH+N896/bZckTP/KTtwWZj3/tCCBXShpQgNwGGx8J6+hls4s X-Received: by 10.220.142.140 with SMTP id q12mr2067566vcu.21.1381781726591; Mon, 14 Oct 2013 13:15:26 -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.220.174.196 with SMTP id u4csp248465vcz; Mon, 14 Oct 2013 13:15:25 -0700 (PDT) X-Received: by 10.194.19.5 with SMTP id a5mr3362310wje.48.1381781725005; Mon, 14 Oct 2013 13:15:25 -0700 (PDT) Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by mx.google.com with ESMTPS id by8si25807145wjc.130.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 14 Oct 2013 13:15:24 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.182 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) client-ip=209.85.212.182; Received: by mail-wi0-f182.google.com with SMTP id ez12so1717099wid.9 for ; Mon, 14 Oct 2013 13:15:24 -0700 (PDT) X-Received: by 10.180.211.237 with SMTP id nf13mr16014689wic.55.1381781724571; Mon, 14 Oct 2013 13:15:24 -0700 (PDT) Received: from mai.home (AToulouse-654-1-457-225.w83-205.abo.wanadoo.fr. [83.205.200.225]) by mx.google.com with ESMTPSA id gp9sm37586770wib.8.2013.10.14.13.15.23 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 14 Oct 2013 13:15:24 -0700 (PDT) From: Daniel Lezcano To: plagnioj@jcrosoft.com, linux@maxim.org.za, nicolas.ferre@atmel.com Cc: linux-arm-kernel@lists.infradead.org, patches@linaro.org, linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, thomas.petazzoni@free-electrons.com, b.zolnierkie@samsung.com Subject: [PATCH V2 2/2] ARM: at91: cpuidle: Move driver to drivers/cpuidle Date: Mon, 14 Oct 2013 22:15:21 +0200 Message-Id: <1381781721-11866-2-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1381781721-11866-1-git-send-email-daniel.lezcano@linaro.org> References: <1381781721-11866-1-git-send-email-daniel.lezcano@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: daniel.lezcano@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.170 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: , As the cpuidle driver code has no more the dependency with the pm code, the 'standby' callback being passed as a parameter to the device's platform data, we can move the cpuidle driver in the drivers/cpuidle directory. Signed-off-by: Daniel Lezcano --- arch/arm/mach-at91/Makefile | 1 - drivers/cpuidle/Kconfig.arm | 7 +++++++ drivers/cpuidle/Makefile | 1 + .../cpuidle.c => drivers/cpuidle/cpuidle-at91.c | 0 4 files changed, 8 insertions(+), 1 deletion(-) rename arch/arm/mach-at91/cpuidle.c => drivers/cpuidle/cpuidle-at91.c (100%) diff --git a/arch/arm/mach-at91/cpuidle.c b/drivers/cpuidle/cpuidle-at91.c similarity index 100% rename from arch/arm/mach-at91/cpuidle.c rename to drivers/cpuidle/cpuidle-at91.c diff --git a/arch/arm/mach-at91/Makefile b/arch/arm/mach-at91/Makefile index 3b0a953..c1b7370 100644 --- a/arch/arm/mach-at91/Makefile +++ b/arch/arm/mach-at91/Makefile @@ -98,7 +98,6 @@ obj-y += leds.o # Power Management obj-$(CONFIG_PM) += pm.o obj-$(CONFIG_AT91_SLOW_CLOCK) += pm_slowclock.o -obj-$(CONFIG_CPU_IDLE) += cpuidle.o ifeq ($(CONFIG_PM_DEBUG),y) CFLAGS_pm.o += -DDEBUG diff --git a/drivers/cpuidle/Kconfig.arm b/drivers/cpuidle/Kconfig.arm index 8e36603..33a745e 100644 --- a/drivers/cpuidle/Kconfig.arm +++ b/drivers/cpuidle/Kconfig.arm @@ -27,6 +27,13 @@ config ARM_U8500_CPUIDLE help Select this to enable cpuidle for ST-E u8500 processors +config ARM_AT91_CPUIDLE + bool "Cpu Idle Driver for the AT91 processors" + default y + depends on ARCH_AT91 + help + Select this to enable cpuidle for AT91 processors + config CPU_IDLE_BIG_LITTLE bool "Support for ARM big.LITTLE processors" depends on ARCH_VEXPRESS_TC2_PM diff --git a/drivers/cpuidle/Makefile b/drivers/cpuidle/Makefile index cea5ef5..60c4ae5 100644 --- a/drivers/cpuidle/Makefile +++ b/drivers/cpuidle/Makefile @@ -11,4 +11,5 @@ obj-$(CONFIG_ARM_HIGHBANK_CPUIDLE) += cpuidle-calxeda.o obj-$(CONFIG_ARM_KIRKWOOD_CPUIDLE) += cpuidle-kirkwood.o obj-$(CONFIG_ARM_ZYNQ_CPUIDLE) += cpuidle-zynq.o obj-$(CONFIG_ARM_U8500_CPUIDLE) += cpuidle-ux500.o +obj-$(CONFIG_ARM_AT91_CPUIDLE) += cpuidle-at91.o obj-$(CONFIG_CPU_IDLE_BIG_LITTLE) += cpuidle-big_little.o