Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757405Ab3CZEZu (ORCPT ); Tue, 26 Mar 2013 00:25:50 -0400 Received: from mail-ob0-f169.google.com ([209.85.214.169]:33730 "EHLO mail-ob0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756405Ab3CZEZs (ORCPT ); Tue, 26 Mar 2013 00:25:48 -0400 MIME-Version: 1.0 In-Reply-To: References: <2641a3f059f1698ee6825c7b6bfe25a3937e1474.1364229828.git.viresh.kumar@linaro.org> <20130325.130745.670476511400589185.davem@davemloft.net> Date: Tue, 26 Mar 2013 09:55:47 +0530 Message-ID: Subject: Re: [PATCH 8/9] spark: cpufreq: move cpufreq driver to drivers/cpufreq From: Viresh Kumar To: David Miller Cc: rjw@sisk.pl, arvind.chauhan@arm.com, robin.randhawa@arm.com, Steve.Bannister@arm.com, Liviu.Dudau@arm.com, charles.garcia-tobin@arm.com, cpufreq@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linaro-kernel@lists.linaro.org, arnd.bergmann@linaro.org, sparclinux@vger.kernel.org Content-Type: multipart/mixed; boundary=e89a8fb207a4cfaac304d8cc50ed Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 11154 Lines: 238 --e89a8fb207a4cfaac304d8cc50ed Content-Type: text/plain; charset=ISO-8859-1 On 26 March 2013 07:30, Viresh Kumar wrote: > On 25 March 2013 22:37, David Miller wrote: >> From: Viresh Kumar >> Date: Mon, 25 Mar 2013 22:24:44 +0530 >> >>> This patch moves cpufreq driver of SPARK architecture to drivers/cpufreq. >> >> I don't know what spark is. > > :( > > s/spark/sparc ... > > I will fix patch in V2.. Mistake was done in code too and not only log :) Here is re-spin of this patch (attached too in case you want to test): From: Viresh Kumar Date: Mon, 25 Mar 2013 11:20:23 +0530 Subject: [PATCH] sparc: cpufreq: move cpufreq driver to drivers/cpufreq This patch moves cpufreq driver of SPARC architecture to drivers/cpufreq. Cc: David S. Miller Cc: sparclinux@vger.kernel.org Signed-off-by: Viresh Kumar --- arch/sparc/Kconfig | 23 ---------------------- arch/sparc/kernel/Makefile | 3 --- drivers/cpufreq/Kconfig | 23 ++++++++++++++++++++++ drivers/cpufreq/Makefile | 2 ++ .../cpufreq/sparc-us2e-cpufreq.c | 0 .../cpufreq/sparc-us3-cpufreq.c | 0 6 files changed, 25 insertions(+), 26 deletions(-) rename arch/sparc/kernel/us2e_cpufreq.c => drivers/cpufreq/sparc-us2e-cpufreq.c (100%) rename arch/sparc/kernel/us3_cpufreq.c => drivers/cpufreq/sparc-us3-cpufreq.c (100%) diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig index 289127d..52e7680 100644 --- a/arch/sparc/Kconfig +++ b/arch/sparc/Kconfig @@ -260,29 +260,6 @@ config HOTPLUG_CPU if SPARC64 source "drivers/cpufreq/Kconfig" - -config US3_FREQ - tristate "UltraSPARC-III CPU Frequency driver" - depends on CPU_FREQ - select CPU_FREQ_TABLE - help - This adds the CPUFreq driver for UltraSPARC-III processors. - - For details, take a look at . - - If in doubt, say N. - -config US2E_FREQ - tristate "UltraSPARC-IIe CPU Frequency driver" - depends on CPU_FREQ - select CPU_FREQ_TABLE - help - This adds the CPUFreq driver for UltraSPARC-IIe processors. - - For details, take a look at . - - If in doubt, say N. - endif config US3_MC diff --git a/arch/sparc/kernel/Makefile b/arch/sparc/kernel/Makefile index 6cf591b..5276fd4 100644 --- a/arch/sparc/kernel/Makefile +++ b/arch/sparc/kernel/Makefile @@ -102,9 +102,6 @@ obj-$(CONFIG_PCI_MSI) += pci_msi.o obj-$(CONFIG_COMPAT) += sys32.o sys_sparc32.o signal32.o -# sparc64 cpufreq -obj-$(CONFIG_US3_FREQ) += us3_cpufreq.o -obj-$(CONFIG_US2E_FREQ) += us2e_cpufreq.o obj-$(CONFIG_US3_MC) += chmc.o obj-$(CONFIG_KPROBES) += kprobes.o diff --git a/drivers/cpufreq/Kconfig b/drivers/cpufreq/Kconfig index 602d5db..a1488f5 100644 --- a/drivers/cpufreq/Kconfig +++ b/drivers/cpufreq/Kconfig @@ -258,6 +258,29 @@ depends on PPC32 || PPC64 source "drivers/cpufreq/Kconfig.powerpc" endmenu +menu "SPARC CPU frequency scaling drivers" +depends on SPARC64 +config SPARC_US3_CPUFREQ + tristate "UltraSPARC-III CPU Frequency driver" + select CPU_FREQ_TABLE + help + This adds the CPUFreq driver for UltraSPARC-III processors. + + For details, take a look at . + + If in doubt, say N. + +config SPARC_US2E_CPUFREQ + tristate "UltraSPARC-IIe CPU Frequency driver" + select CPU_FREQ_TABLE + help + This adds the CPUFreq driver for UltraSPARC-IIe processors. + + For details, take a look at . + + If in doubt, say N. +endmenu + menu "SH CPU Frequency scaling" depends on SUPERH config SH_CPU_FREQ diff --git a/drivers/cpufreq/Makefile b/drivers/cpufreq/Makefile index ab3a054..050bd0c 100644 --- a/drivers/cpufreq/Makefile +++ b/drivers/cpufreq/Makefile @@ -85,4 +85,6 @@ obj-$(CONFIG_ETRAXFS) += cris-etraxfs-cpufreq.o obj-$(CONFIG_IA64_ACPI_CPUFREQ) += ia64-acpi-cpufreq.o obj-$(CONFIG_LOONGSON2_CPUFREQ) += loongson2_cpufreq.o obj-$(CONFIG_SH_CPU_FREQ) += sh-cpufreq.o +obj-$(CONFIG_SPARC_US2E_CPUFREQ) += sparc-us2e-cpufreq.o +obj-$(CONFIG_SPARC_US3_CPUFREQ) += sparc-us3-cpufreq.o obj-$(CONFIG_UNICORE32) += unicore2-cpufreq.o diff --git a/arch/sparc/kernel/us2e_cpufreq.c b/drivers/cpufreq/sparc-us2e-cpufreq.c similarity index 100% rename from arch/sparc/kernel/us2e_cpufreq.c rename to drivers/cpufreq/sparc-us2e-cpufreq.c diff --git a/arch/sparc/kernel/us3_cpufreq.c b/drivers/cpufreq/sparc-us3-cpufreq.c similarity index 100% rename from arch/sparc/kernel/us3_cpufreq.c rename to drivers/cpufreq/sparc-us3-cpufreq.c --e89a8fb207a4cfaac304d8cc50ed Content-Type: application/octet-stream; name="0001-sparc-cpufreq-move-cpufreq-driver-to-drivers-cpufreq.patch" Content-Disposition: attachment; filename="0001-sparc-cpufreq-move-cpufreq-driver-to-drivers-cpufreq.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_heqka1xa0 RnJvbSA2MTY0MWUyYmMwZGUwNjU5ZWZjZDdhZGQ2MzU4ZDcxYmFkZWRlODQwIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpNZXNzYWdlLUlkOiA8NjE2NDFlMmJjMGRlMDY1OWVmY2Q3YWRkNjM1OGQ3 MWJhZGVkZTg0MC4xMzY0MjcxOTAwLmdpdC52aXJlc2gua3VtYXJAbGluYXJvLm9yZz4KRnJvbTog VmlyZXNoIEt1bWFyIDx2aXJlc2gua3VtYXJAbGluYXJvLm9yZz4KRGF0ZTogTW9uLCAyNSBNYXIg MjAxMyAxMToyMDoyMyArMDUzMApTdWJqZWN0OiBbUEFUQ0hdIHNwYXJjOiBjcHVmcmVxOiAgbW92 ZSBjcHVmcmVxIGRyaXZlciB0byBkcml2ZXJzL2NwdWZyZXEKClRoaXMgcGF0Y2ggbW92ZXMgY3B1 ZnJlcSBkcml2ZXIgb2YgU1BBUkMgYXJjaGl0ZWN0dXJlIHRvIGRyaXZlcnMvY3B1ZnJlcS4KCkNj OiBEYXZpZCBTLiBNaWxsZXIgPGRhdmVtQGRhdmVtbG9mdC5uZXQ+CkNjOiBzcGFyY2xpbnV4QHZn ZXIua2VybmVsLm9yZwpTaWduZWQtb2ZmLWJ5OiBWaXJlc2ggS3VtYXIgPHZpcmVzaC5rdW1hckBs aW5hcm8ub3JnPgotLS0KIGFyY2gvc3BhcmMvS2NvbmZpZyAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgIHwgMjMgLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQogYXJjaC9zcGFyYy9rZXJuZWwv TWFrZWZpbGUgICAgICAgICAgICAgICAgICA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 Kz0gdW5pY29yZTItY3B1ZnJlcS5vCmRpZmYgLS1naXQgYS9hcmNoL3NwYXJjL2tlcm5lbC91czJl X2NwdWZyZXEuYyBiL2RyaXZlcnMvY3B1ZnJlcS9zcGFyYy11czJlLWNwdWZyZXEuYwpzaW1pbGFy aXR5IGluZGV4IDEwMCUKcmVuYW1lIGZyb20gYXJjaC9zcGFyYy9rZXJuZWwvdXMyZV9jcHVmcmVx LmMKcmVuYW1lIHRvIGRyaXZlcnMvY3B1ZnJlcS9zcGFyYy11czJlLWNwdWZyZXEuYwpkaWZmIC0t Z2l0IGEvYXJjaC9zcGFyYy9rZXJuZWwvdXMzX2NwdWZyZXEuYyBiL2RyaXZlcnMvY3B1ZnJlcS9z cGFyYy11czMtY3B1ZnJlcS5jCnNpbWlsYXJpdHkgaW5kZXggMTAwJQpyZW5hbWUgZnJvbSBhcmNo L3NwYXJjL2tlcm5lbC91czNfY3B1ZnJlcS5jCnJlbmFtZSB0byBkcml2ZXJzL2NwdWZyZXEvc3Bh cmMtdXMzLWNwdWZyZXEuYwotLSAKMS43LjEyLnJjMi4xOC5nNjFiNDcyZQoK --e89a8fb207a4cfaac304d8cc50ed-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/