From patchwork Thu Apr 4 12:54:14 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 2392741 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) by patchwork1.kernel.org (Postfix) with ESMTP id 26F763FD8C for ; Thu, 4 Apr 2013 13:00:16 +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 1UNjm3-0003kQ-6v for patchwork-linux-arm@patchwork.kernel.org; Thu, 04 Apr 2013 13:00:15 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UNjj7-0006U0-OY; Thu, 04 Apr 2013 12:57:13 +0000 Received: from mail-pa0-f49.google.com ([209.85.220.49]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UNjhw-0005iS-9G for linux-arm-kernel@lists.infradead.org; Thu, 04 Apr 2013 12:56:02 +0000 Received: by mail-pa0-f49.google.com with SMTP id kp14so1475678pab.36 for ; Thu, 04 Apr 2013 05:55:59 -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:in-reply-to:references:x-gm-message-state; bh=yAX0xu+jJUb1Zml4ZNZ2X+NnSfxY8AMRgpc2akVfQ9Q=; b=DW5qMcaLtdQgnJOWuy2n6QsFySeocoQavBEHoSQV9MguQg39ybmTsJLlvxDm+8CLsf sQIuFqCIGfAkur9WADb2pobFrstYgEVkU7iKp4rULQte3W8hAAN4h2tm5fr9cMBOkZP+ 1ca2YfyVE0sB6btsKLSUHJCrJK8OyuRnvk7/z5brkPX8otONkTfZL9nkmD4yw8u8Slko 9vzJ3eXEhi8svZWs0jocXv+bqVnOyd1DnPfzyFY/uDlkdOxdd0c/R75UNZ/bdn3p1X+3 jf/xhGNj5OF1cVZ6wZkZmdXWz+RF0v6kF6t+VW0A5PbdxmJTIzErzOz7vqiVkBAZtRi/ BO8g== X-Received: by 10.68.226.201 with SMTP id ru9mr8721004pbc.102.1365080158887; Thu, 04 Apr 2013 05:55:58 -0700 (PDT) Received: from localhost ([122.172.193.181]) by mx.google.com with ESMTPS id hu2sm10107682pbc.38.2013.04.04.05.55.53 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 04 Apr 2013 05:55:58 -0700 (PDT) From: Viresh Kumar To: rjw@sisk.pl Subject: [PATCH 06/18] cpufreq: integrator: move cpufreq driver to drivers/cpufreq Date: Thu, 4 Apr 2013 18:24:14 +0530 Message-Id: <062b894f52bcf748d2a5ba82e98319b9734356a9.1365079581.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: References: In-Reply-To: References: X-Gm-Message-State: ALoCoQkin9t+qP95dWN410DtU1M+hFiHx7nfqG9hg+Yswv5cSHnmN+Wr3sOo8boOqBl8U1zjMBRh X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130404_085600_612091_47DDBFA1 X-CRM114-Status: GOOD ( 13.34 ) X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.220.49 listed in list.dnswl.org] 1.7 KHOP_BIG_TO_CC Sent to 10+ recipients instaed of Bcc or a list -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: robin.randhawa@arm.com, Russell King , linux-pm@vger.kernel.org, Viresh Kumar , patches@linaro.org, Liviu.Dudau@arm.com, linux-kernel@vger.kernel.org, cpufreq@vger.kernel.org, Steve.Bannister@arm.com, linux-arm-kernel@lists.infradead.org, arvind.chauhan@arm.com, linaro-kernel@lists.linaro.org, charles.garcia-tobin@arm.com 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 This patch moves cpufreq driver of ARM based integrator platform to drivers/cpufreq. Cc: Russell King Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Viresh Kumar Acked-by: Arnd Bergmann Acked-by: Linus Walleij --- arch/arm/Kconfig | 11 ----------- arch/arm/mach-integrator/Makefile | 1 - drivers/cpufreq/Kconfig.arm | 8 ++++++++ drivers/cpufreq/Makefile | 1 + .../cpu.c => drivers/cpufreq/integrator-cpufreq.c | 2 -- 5 files changed, 9 insertions(+), 14 deletions(-) rename arch/arm/mach-integrator/cpu.c => drivers/cpufreq/integrator-cpufreq.c (99%) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 76eb836..c3563f6 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -2166,17 +2166,6 @@ config CPU_FREQ_SA1100 config CPU_FREQ_SA1110 bool -config CPU_FREQ_INTEGRATOR - tristate "CPUfreq driver for ARM Integrator CPUs" - depends on ARCH_INTEGRATOR && CPU_FREQ - default y - help - This enables the CPUfreq driver for ARM Integrator CPUs. - - For details, take a look at . - - If in doubt, say Y. - config CPU_FREQ_S3C bool help diff --git a/arch/arm/mach-integrator/Makefile b/arch/arm/mach-integrator/Makefile index 5521d18..d14d6b7 100644 --- a/arch/arm/mach-integrator/Makefile +++ b/arch/arm/mach-integrator/Makefile @@ -9,5 +9,4 @@ obj-$(CONFIG_ARCH_INTEGRATOR_AP) += integrator_ap.o obj-$(CONFIG_ARCH_INTEGRATOR_CP) += integrator_cp.o obj-$(CONFIG_PCI) += pci_v3.o pci.o -obj-$(CONFIG_CPU_FREQ_INTEGRATOR) += cpu.o obj-$(CONFIG_INTEGRATOR_IMPD1) += impd1.o diff --git a/drivers/cpufreq/Kconfig.arm b/drivers/cpufreq/Kconfig.arm index 25d866a..97f208d 100644 --- a/drivers/cpufreq/Kconfig.arm +++ b/drivers/cpufreq/Kconfig.arm @@ -66,6 +66,14 @@ config ARM_IMX6Q_CPUFREQ If in doubt, say N. +config ARM_INTEGRATOR + tristate "CPUfreq driver for ARM Integrator CPUs" + depends on ARCH_INTEGRATOR + default y + help + This enables the CPUfreq driver for ARM Integrator CPUs. + If in doubt, say Y. + config ARM_KIRKWOOD_CPUFREQ def_bool ARCH_KIRKWOOD && OF help diff --git a/drivers/cpufreq/Makefile b/drivers/cpufreq/Makefile index aa766fb..8d58016 100644 --- a/drivers/cpufreq/Makefile +++ b/drivers/cpufreq/Makefile @@ -57,6 +57,7 @@ obj-$(CONFIG_ARM_EXYNOS4X12_CPUFREQ) += exynos4x12-cpufreq.o obj-$(CONFIG_ARM_EXYNOS5250_CPUFREQ) += exynos5250-cpufreq.o obj-$(CONFIG_ARM_HIGHBANK_CPUFREQ) += highbank-cpufreq.o obj-$(CONFIG_ARM_IMX6Q_CPUFREQ) += imx6q-cpufreq.o +obj-$(CONFIG_ARM_INTEGRATOR) += integrator-cpufreq.o obj-$(CONFIG_ARM_KIRKWOOD_CPUFREQ) += kirkwood-cpufreq.o obj-$(CONFIG_ARM_OMAP2PLUS_CPUFREQ) += omap-cpufreq.o obj-$(CONFIG_PXA25x) += pxa2xx-cpufreq.o diff --git a/arch/arm/mach-integrator/cpu.c b/drivers/cpufreq/integrator-cpufreq.c similarity index 99% rename from arch/arm/mach-integrator/cpu.c rename to drivers/cpufreq/integrator-cpufreq.c index df863c3..f7c99df 100644 --- a/arch/arm/mach-integrator/cpu.c +++ b/drivers/cpufreq/integrator-cpufreq.c @@ -1,6 +1,4 @@ /* - * linux/arch/arm/mach-integrator/cpu.c - * * Copyright (C) 2001-2002 Deep Blue Solutions Ltd. * * This program is free software; you can redistribute it and/or modify