From patchwork Fri Oct 25 07:11:14 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 3094421 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A780D9F2B7 for ; Fri, 25 Oct 2013 07:12:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D0F7520397 for ; Fri, 25 Oct 2013 07:12:30 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BC88520336 for ; Fri, 25 Oct 2013 07:12:29 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VZbYy-0007JZ-4P; Fri, 25 Oct 2013 07:12:04 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VZbYr-0004UV-Fd; Fri, 25 Oct 2013 07:11:57 +0000 Received: from mail-wg0-f47.google.com ([74.125.82.47]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VZbYg-0004Sx-HQ for linux-arm-kernel@lists.infradead.org; Fri, 25 Oct 2013 07:11:47 +0000 Received: by mail-wg0-f47.google.com with SMTP id c11so3412900wgh.14 for ; Fri, 25 Oct 2013 00:11:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=9wYxvycI+FknTfXJ1Nu7y9hWInujEDoP9mkCoDviizQ=; b=OIhUY6I5DYZpROiuXQPFlX2rxFIUVmYVzhE4cg6Ij+6ttTs+iCMtthjgfoZifclMAZ jIO1jI+BMpfha9PLgA/+nAJUrHpm7J5ORpZY2Dnm4I8bimxbXSu0bODrgPNStDmCpmEF HnqdkOnKG4Nsi64MXGf6pbW7xGR+vmOvZtuLLO/6qJOfd++R9B7iilUHQenOv/DiaMQ0 nYk8NXQrtxrHdC8VdGUxygMY56cbHy35PklRY0eiCuEiMzZ9BQa2oUIXdu4cVvV+iSOt C/Xgm0b9U8esqC/g+7QsGu800/9eDlVTtbCSKTuJugWrbhNqwBTek1/AdSsvH2gz3O9s QSKw== X-Gm-Message-State: ALoCoQmDvAXeif/9IKeuHzsvQmvPX9wfeuT2NsLoY4zDJ2RRJvr/yVojf4f9LLoWc9zSVJlWmsmI X-Received: by 10.180.36.105 with SMTP id p9mr1220738wij.2.1382685076966; Fri, 25 Oct 2013 00:11:16 -0700 (PDT) Received: from mai.home (AToulouse-654-1-445-47.w83-205.abo.wanadoo.fr. [83.205.196.47]) by mx.google.com with ESMTPSA id w10sm2897600wia.4.2013.10.25.00.11.15 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 25 Oct 2013 00:11:16 -0700 (PDT) From: Daniel Lezcano To: ben-linux@fluff.org, kgene.kim@samsung.com Subject: [PATCH 2/2] ARM: s3c64xx: cpuidle: move driver to drivers/cpuidle Date: Fri, 25 Oct 2013 09:11:14 +0200 Message-Id: <1382685074-16502-2-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1382685074-16502-1-git-send-email-daniel.lezcano@linaro.org> References: <1382685074-16502-1-git-send-email-daniel.lezcano@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131025_031146_696097_2C0622E5 X-CRM114-Status: GOOD ( 12.27 ) X-Spam-Score: -2.6 (--) Cc: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP There is no more dependency with the arch dependant code, thanks to the platform driver conversion. Move the driver to the drivers/cpuidle like the other drivers. Signed-off-by: Daniel Lezcano --- arch/arm/mach-s3c64xx/Makefile | 1 - drivers/cpuidle/Kconfig.arm | 7 +++++++ drivers/cpuidle/Makefile | 1 + .../cpuidle.c => drivers/cpuidle/cpuidle-s3c64xx.c | 0 4 files changed, 8 insertions(+), 1 deletion(-) rename arch/arm/mach-s3c64xx/cpuidle.c => drivers/cpuidle/cpuidle-s3c64xx.c (100%) diff --git a/arch/arm/mach-s3c64xx/cpuidle.c b/drivers/cpuidle/cpuidle-s3c64xx.c similarity index 100% rename from arch/arm/mach-s3c64xx/cpuidle.c rename to drivers/cpuidle/cpuidle-s3c64xx.c diff --git a/arch/arm/mach-s3c64xx/Makefile b/arch/arm/mach-s3c64xx/Makefile index 31d0c91..e7a3ee7 100644 --- a/arch/arm/mach-s3c64xx/Makefile +++ b/arch/arm/mach-s3c64xx/Makefile @@ -22,7 +22,6 @@ obj-$(CONFIG_CPU_S3C6410) += s3c6410.o # PM obj-$(CONFIG_PM) += pm.o irq-pm.o sleep.o -obj-$(CONFIG_CPU_IDLE) += cpuidle.o # DMA support diff --git a/drivers/cpuidle/Kconfig.arm b/drivers/cpuidle/Kconfig.arm index f23bd75..5b2f84d 100644 --- a/drivers/cpuidle/Kconfig.arm +++ b/drivers/cpuidle/Kconfig.arm @@ -44,3 +44,10 @@ config ARM_AT91_CPUIDLE depends on ARCH_AT91 help Select this to enable cpuidle for AT91 processors + +config ARM_S3C64XX_CPUIDLE + bool "Cpu Idle Driver for the s3c64xx processors" + default y + depends on ARCH_S3C64XX + help + Select this to enable cpuidle for s3c64xx processors diff --git a/drivers/cpuidle/Makefile b/drivers/cpuidle/Makefile index 527be28..2768020 100644 --- a/drivers/cpuidle/Makefile +++ b/drivers/cpuidle/Makefile @@ -13,3 +13,4 @@ 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_ARM_S3C64XX_CPUIDLE) += cpuidle-s3c64xx.o