* [PATCH 5/9] mips: cpufreq: move cpufreq driver to drivers/cpufreq
[not found] <cover.1364229828.git.viresh.kumar@linaro.org>
@ 2013-03-25 16:54 ` Viresh Kumar
2013-03-31 4:01 ` Viresh Kumar
0 siblings, 1 reply; 4+ messages in thread
From: Viresh Kumar @ 2013-03-25 16:54 UTC (permalink / raw)
To: rjw
Cc: arvind.chauhan, robin.randhawa, Steve.Bannister, Liviu.Dudau,
charles.garcia-tobin, cpufreq, linux-pm, linux-kernel,
linaro-kernel, arnd.bergmann, Viresh Kumar, Ralf Baechle,
linux-mips
This patch moves cpufreq driver of MIPS architecture to drivers/cpufreq.
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
---
arch/mips/Kconfig | 9 ++++-
arch/mips/kernel/Makefile | 2 --
arch/mips/kernel/cpufreq/Kconfig | 41 ----------------------
arch/mips/kernel/cpufreq/Makefile | 5 ---
drivers/cpufreq/Kconfig | 18 ++++++++++
drivers/cpufreq/Makefile | 1 +
.../kernel => drivers}/cpufreq/loongson2_cpufreq.c | 0
7 files changed, 27 insertions(+), 49 deletions(-)
delete mode 100644 arch/mips/kernel/cpufreq/Kconfig
delete mode 100644 arch/mips/kernel/cpufreq/Makefile
rename {arch/mips/kernel => drivers}/cpufreq/loongson2_cpufreq.c (100%)
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index cd2e21f..22e8417 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -2539,7 +2539,14 @@ source "kernel/power/Kconfig"
endmenu
-source "arch/mips/kernel/cpufreq/Kconfig"
+config MIPS_EXTERNAL_TIMER
+ bool
+
+if CPU_SUPPORTS_CPUFREQ && MIPS_EXTERNAL_TIMER
+menu "CPU Power Management"
+source "drivers/cpufreq/Kconfig"
+endmenu
+endif
source "net/Kconfig"
diff --git a/arch/mips/kernel/Makefile b/arch/mips/kernel/Makefile
index f81d98f..c69ca65 100644
--- a/arch/mips/kernel/Makefile
+++ b/arch/mips/kernel/Makefile
@@ -92,8 +92,6 @@ CFLAGS_cpu-bugs64.o = $(shell if $(CC) $(KBUILD_CFLAGS) -Wa,-mdaddi -c -o /dev/n
obj-$(CONFIG_HAVE_STD_PC_SERIAL_PORT) += 8250-platform.o
-obj-$(CONFIG_MIPS_CPUFREQ) += cpufreq/
-
obj-$(CONFIG_PERF_EVENTS) += perf_event.o
obj-$(CONFIG_HW_PERF_EVENTS) += perf_event_mipsxx.o
diff --git a/arch/mips/kernel/cpufreq/Kconfig b/arch/mips/kernel/cpufreq/Kconfig
deleted file mode 100644
index 58c601e..0000000
--- a/arch/mips/kernel/cpufreq/Kconfig
+++ /dev/null
@@ -1,41 +0,0 @@
-#
-# CPU Frequency scaling
-#
-
-config MIPS_EXTERNAL_TIMER
- bool
-
-config MIPS_CPUFREQ
- bool
- default y
- depends on CPU_SUPPORTS_CPUFREQ && MIPS_EXTERNAL_TIMER
-
-if MIPS_CPUFREQ
-
-menu "CPU Frequency scaling"
-
-source "drivers/cpufreq/Kconfig"
-
-if CPU_FREQ
-
-comment "CPUFreq processor drivers"
-
-config LOONGSON2_CPUFREQ
- tristate "Loongson2 CPUFreq Driver"
- select CPU_FREQ_TABLE
- depends on MIPS_CPUFREQ
- help
- This option adds a CPUFreq driver for loongson processors which
- support software configurable cpu frequency.
-
- Loongson2F and it's successors support this feature.
-
- For details, take a look at <file:Documentation/cpu-freq/>.
-
- If in doubt, say N.
-
-endif # CPU_FREQ
-
-endmenu
-
-endif # MIPS_CPUFREQ
diff --git a/arch/mips/kernel/cpufreq/Makefile b/arch/mips/kernel/cpufreq/Makefile
deleted file mode 100644
index 05a5715..0000000
--- a/arch/mips/kernel/cpufreq/Makefile
+++ /dev/null
@@ -1,5 +0,0 @@
-#
-# Makefile for the Linux/MIPS cpufreq.
-#
-
-obj-$(CONFIG_LOONGSON2_CPUFREQ) += loongson2_cpufreq.o
diff --git a/drivers/cpufreq/Kconfig b/drivers/cpufreq/Kconfig
index a2f1600..5030df5 100644
--- a/drivers/cpufreq/Kconfig
+++ b/drivers/cpufreq/Kconfig
@@ -235,6 +235,24 @@ config IA64_ACPI_CPUFREQ
endmenu
+menu "MIPS CPUFreq processor drivers"
+depends on MIPS
+
+config LOONGSON2_CPUFREQ
+ tristate "Loongson2 CPUFreq Driver"
+ select CPU_FREQ_TABLE
+ help
+ This option adds a CPUFreq driver for loongson processors which
+ support software configurable cpu frequency.
+
+ Loongson2F and it's successors support this feature.
+
+ For details, take a look at <file:Documentation/cpu-freq/>.
+
+ If in doubt, say N.
+
+endmenu
+
menu "PowerPC CPU frequency scaling drivers"
depends on PPC32 || PPC64
source "drivers/cpufreq/Kconfig.powerpc"
diff --git a/drivers/cpufreq/Makefile b/drivers/cpufreq/Makefile
index 312141d..a245559 100644
--- a/drivers/cpufreq/Makefile
+++ b/drivers/cpufreq/Makefile
@@ -83,3 +83,4 @@ obj-$(CONFIG_BLACKFIN) += blackfin-cpufreq.o
obj-$(CONFIG_CRIS_MACH_ARTPEC3) += cris-artpec3-cpufreq.o
obj-$(CONFIG_ETRAXFS) += cris-etraxfs-cpufreq.o
obj-$(CONFIG_IA64_ACPI_CPUFREQ) += ia64-acpi-cpufreq.o
+obj-$(CONFIG_LOONGSON2_CPUFREQ) += loongson2_cpufreq.o
diff --git a/arch/mips/kernel/cpufreq/loongson2_cpufreq.c b/drivers/cpufreq/loongson2_cpufreq.c
similarity index 100%
rename from arch/mips/kernel/cpufreq/loongson2_cpufreq.c
rename to drivers/cpufreq/loongson2_cpufreq.c
--
1.7.12.rc2.18.g61b472e
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 5/9] mips: cpufreq: move cpufreq driver to drivers/cpufreq
2013-03-25 16:54 ` [PATCH 5/9] mips: cpufreq: move cpufreq driver to drivers/cpufreq Viresh Kumar
@ 2013-03-31 4:01 ` Viresh Kumar
2013-04-03 9:28 ` Viresh Kumar
0 siblings, 1 reply; 4+ messages in thread
From: Viresh Kumar @ 2013-03-31 4:01 UTC (permalink / raw)
To: Ralf Baechle, linux-mips
Cc: arvind.chauhan, robin.randhawa, Steve.Bannister, Liviu.Dudau,
charles.garcia-tobin, cpufreq, linux-pm, linux-kernel,
linaro-kernel, arnd.bergmann, Viresh Kumar, Rafael J. Wysocki
On 25 March 2013 22:24, Viresh Kumar <viresh.kumar@linaro.org> wrote:
> This patch moves cpufreq driver of MIPS architecture to drivers/cpufreq.
>
> Cc: Ralf Baechle <ralf@linux-mips.org>
> Cc: linux-mips@linux-mips.org
> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
> ---
> arch/mips/Kconfig | 9 ++++-
> arch/mips/kernel/Makefile | 2 --
> arch/mips/kernel/cpufreq/Kconfig | 41 ----------------------
> arch/mips/kernel/cpufreq/Makefile | 5 ---
> drivers/cpufreq/Kconfig | 18 ++++++++++
> drivers/cpufreq/Makefile | 1 +
> .../kernel => drivers}/cpufreq/loongson2_cpufreq.c | 0
> 7 files changed, 27 insertions(+), 49 deletions(-)
> delete mode 100644 arch/mips/kernel/cpufreq/Kconfig
> delete mode 100644 arch/mips/kernel/cpufreq/Makefile
> rename {arch/mips/kernel => drivers}/cpufreq/loongson2_cpufreq.c (100%)
Ralf or any other mips guy,
Can i have your ack or comments for this patch?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 5/9] mips: cpufreq: move cpufreq driver to drivers/cpufreq
2013-03-31 4:01 ` Viresh Kumar
@ 2013-04-03 9:28 ` Viresh Kumar
2013-04-03 10:07 ` John Crispin
0 siblings, 1 reply; 4+ messages in thread
From: Viresh Kumar @ 2013-04-03 9:28 UTC (permalink / raw)
To: Ralf Baechle, linux-mips
On 31 March 2013 09:31, Viresh Kumar <viresh.kumar@linaro.org> wrote:
> On 25 March 2013 22:24, Viresh Kumar <viresh.kumar@linaro.org> wrote:
>> This patch moves cpufreq driver of MIPS architecture to drivers/cpufreq.
>>
>> Cc: Ralf Baechle <ralf@linux-mips.org>
>> Cc: linux-mips@linux-mips.org
>> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
>> ---
>> arch/mips/Kconfig | 9 ++++-
>> arch/mips/kernel/Makefile | 2 --
>> arch/mips/kernel/cpufreq/Kconfig | 41 ----------------------
>> arch/mips/kernel/cpufreq/Makefile | 5 ---
>> drivers/cpufreq/Kconfig | 18 ++++++++++
>> drivers/cpufreq/Makefile | 1 +
>> .../kernel => drivers}/cpufreq/loongson2_cpufreq.c | 0
>> 7 files changed, 27 insertions(+), 49 deletions(-)
>> delete mode 100644 arch/mips/kernel/cpufreq/Kconfig
>> delete mode 100644 arch/mips/kernel/cpufreq/Makefile
>> rename {arch/mips/kernel => drivers}/cpufreq/loongson2_cpufreq.c (100%)
>
> Ralf or any other mips guy,
>
> Can i have your ack or comments for this patch?
Ping!!
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 5/9] mips: cpufreq: move cpufreq driver to drivers/cpufreq
2013-04-03 9:28 ` Viresh Kumar
@ 2013-04-03 10:07 ` John Crispin
0 siblings, 0 replies; 4+ messages in thread
From: John Crispin @ 2013-04-03 10:07 UTC (permalink / raw)
To: viresh.kumar; +Cc: linux-mips, Ralf Baechle
On 03/04/13 11:28, Viresh Kumar wrote:
> On 31 March 2013 09:31, Viresh Kumar<viresh.kumar@linaro.org> wrote:
>> On 25 March 2013 22:24, Viresh Kumar<viresh.kumar@linaro.org> wrote:
>>> This patch moves cpufreq driver of MIPS architecture to drivers/cpufreq.
>>>
>>> Cc: Ralf Baechle<ralf@linux-mips.org>
>>> Cc: linux-mips@linux-mips.org
>>> Signed-off-by: Viresh Kumar<viresh.kumar@linaro.org>
>>> ---
>>> arch/mips/Kconfig | 9 ++++-
>>> arch/mips/kernel/Makefile | 2 --
>>> arch/mips/kernel/cpufreq/Kconfig | 41 ----------------------
>>> arch/mips/kernel/cpufreq/Makefile | 5 ---
>>> drivers/cpufreq/Kconfig | 18 ++++++++++
>>> drivers/cpufreq/Makefile | 1 +
>>> .../kernel => drivers}/cpufreq/loongson2_cpufreq.c | 0
>>> 7 files changed, 27 insertions(+), 49 deletions(-)
>>> delete mode 100644 arch/mips/kernel/cpufreq/Kconfig
>>> delete mode 100644 arch/mips/kernel/cpufreq/Makefile
>>> rename {arch/mips/kernel => drivers}/cpufreq/loongson2_cpufreq.c (100%)
>>
>> Ralf or any other mips guy,
>>
>> Can i have your ack or comments for this patch?
>
> Ping!!
>
>
sorry for the delay ...
Acked-by: John Crispin <blogic@openwrt.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-04-03 10:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <cover.1364229828.git.viresh.kumar@linaro.org>
2013-03-25 16:54 ` [PATCH 5/9] mips: cpufreq: move cpufreq driver to drivers/cpufreq Viresh Kumar
2013-03-31 4:01 ` Viresh Kumar
2013-04-03 9:28 ` Viresh Kumar
2013-04-03 10:07 ` John Crispin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox