diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2013-04-04 08:54:22 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-04-10 07:19:25 -0400 |
commit | 7258267e56325d41f468eb650b6c23f697201645 (patch) | |
tree | 6fc0d8924cd897ff1c51c989d3479e5a38bacfc5 | |
parent | 7a9989356b23fa2c7731632d3b575c53c1ac8bce (diff) |
cpufreq: sh: move cpufreq driver to drivers/cpufreq
This patch moves cpufreq driver of SUPERH architecture to drivers/cpufreq.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | arch/sh/Kconfig | 18 | ||||
-rw-r--r-- | arch/sh/kernel/Makefile | 1 | ||||
-rw-r--r-- | drivers/cpufreq/Kconfig | 18 | ||||
-rw-r--r-- | drivers/cpufreq/Makefile | 1 | ||||
-rw-r--r-- | drivers/cpufreq/sh-cpufreq.c (renamed from arch/sh/kernel/cpufreq.c) | 2 |
5 files changed, 19 insertions, 21 deletions
diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index 5e859633ce69..06e3163bdc11 100644 --- a/arch/sh/Kconfig +++ b/arch/sh/Kconfig | |||
@@ -624,25 +624,7 @@ config SH_CLK_CPG_LEGACY | |||
624 | endmenu | 624 | endmenu |
625 | 625 | ||
626 | menu "CPU Frequency scaling" | 626 | menu "CPU Frequency scaling" |
627 | |||
628 | source "drivers/cpufreq/Kconfig" | 627 | source "drivers/cpufreq/Kconfig" |
629 | |||
630 | config SH_CPU_FREQ | ||
631 | tristate "SuperH CPU Frequency driver" | ||
632 | depends on CPU_FREQ | ||
633 | select CPU_FREQ_TABLE | ||
634 | help | ||
635 | This adds the cpufreq driver for SuperH. Any CPU that supports | ||
636 | clock rate rounding through the clock framework can use this | ||
637 | driver. While it will make the kernel slightly larger, this is | ||
638 | harmless for CPUs that don't support rate rounding. The driver | ||
639 | will also generate a notice in the boot log before disabling | ||
640 | itself if the CPU in question is not capable of rate rounding. | ||
641 | |||
642 | For details, take a look at <file:Documentation/cpu-freq>. | ||
643 | |||
644 | If unsure, say N. | ||
645 | |||
646 | endmenu | 628 | endmenu |
647 | 629 | ||
648 | source "arch/sh/drivers/Kconfig" | 630 | source "arch/sh/drivers/Kconfig" |
diff --git a/arch/sh/kernel/Makefile b/arch/sh/kernel/Makefile index f259b37874e9..261c8bfd75ce 100644 --- a/arch/sh/kernel/Makefile +++ b/arch/sh/kernel/Makefile | |||
@@ -31,7 +31,6 @@ obj-$(CONFIG_VSYSCALL) += vsyscall/ | |||
31 | obj-$(CONFIG_SMP) += smp.o | 31 | obj-$(CONFIG_SMP) += smp.o |
32 | obj-$(CONFIG_SH_STANDARD_BIOS) += sh_bios.o | 32 | obj-$(CONFIG_SH_STANDARD_BIOS) += sh_bios.o |
33 | obj-$(CONFIG_KGDB) += kgdb.o | 33 | obj-$(CONFIG_KGDB) += kgdb.o |
34 | obj-$(CONFIG_SH_CPU_FREQ) += cpufreq.o | ||
35 | obj-$(CONFIG_MODULES) += sh_ksyms_$(BITS).o module.o | 34 | obj-$(CONFIG_MODULES) += sh_ksyms_$(BITS).o module.o |
36 | obj-$(CONFIG_KEXEC) += machine_kexec.o relocate_kernel.o | 35 | obj-$(CONFIG_KEXEC) += machine_kexec.o relocate_kernel.o |
37 | obj-$(CONFIG_CRASH_DUMP) += crash_dump.o | 36 | obj-$(CONFIG_CRASH_DUMP) += crash_dump.o |
diff --git a/drivers/cpufreq/Kconfig b/drivers/cpufreq/Kconfig index 5030df5cd3eb..602d5dbc4345 100644 --- a/drivers/cpufreq/Kconfig +++ b/drivers/cpufreq/Kconfig | |||
@@ -258,5 +258,23 @@ depends on PPC32 || PPC64 | |||
258 | source "drivers/cpufreq/Kconfig.powerpc" | 258 | source "drivers/cpufreq/Kconfig.powerpc" |
259 | endmenu | 259 | endmenu |
260 | 260 | ||
261 | menu "SH CPU Frequency scaling" | ||
262 | depends on SUPERH | ||
263 | config SH_CPU_FREQ | ||
264 | tristate "SuperH CPU Frequency driver" | ||
265 | select CPU_FREQ_TABLE | ||
266 | help | ||
267 | This adds the cpufreq driver for SuperH. Any CPU that supports | ||
268 | clock rate rounding through the clock framework can use this | ||
269 | driver. While it will make the kernel slightly larger, this is | ||
270 | harmless for CPUs that don't support rate rounding. The driver | ||
271 | will also generate a notice in the boot log before disabling | ||
272 | itself if the CPU in question is not capable of rate rounding. | ||
273 | |||
274 | For details, take a look at <file:Documentation/cpu-freq>. | ||
275 | |||
276 | If unsure, say N. | ||
277 | endmenu | ||
278 | |||
261 | endif | 279 | endif |
262 | endmenu | 280 | endmenu |
diff --git a/drivers/cpufreq/Makefile b/drivers/cpufreq/Makefile index 9659cbbad25e..3930d2e6a664 100644 --- a/drivers/cpufreq/Makefile +++ b/drivers/cpufreq/Makefile | |||
@@ -83,3 +83,4 @@ obj-$(CONFIG_CRIS_MACH_ARTPEC3) += cris-artpec3-cpufreq.o | |||
83 | obj-$(CONFIG_ETRAXFS) += cris-etraxfs-cpufreq.o | 83 | obj-$(CONFIG_ETRAXFS) += cris-etraxfs-cpufreq.o |
84 | obj-$(CONFIG_IA64_ACPI_CPUFREQ) += ia64-acpi-cpufreq.o | 84 | obj-$(CONFIG_IA64_ACPI_CPUFREQ) += ia64-acpi-cpufreq.o |
85 | obj-$(CONFIG_LOONGSON2_CPUFREQ) += loongson2_cpufreq.o | 85 | obj-$(CONFIG_LOONGSON2_CPUFREQ) += loongson2_cpufreq.o |
86 | obj-$(CONFIG_SH_CPU_FREQ) += sh-cpufreq.o | ||
diff --git a/arch/sh/kernel/cpufreq.c b/drivers/cpufreq/sh-cpufreq.c index 88c8feedf785..73adb64651e8 100644 --- a/arch/sh/kernel/cpufreq.c +++ b/drivers/cpufreq/sh-cpufreq.c | |||
@@ -1,6 +1,4 @@ | |||
1 | /* | 1 | /* |
2 | * arch/sh/kernel/cpufreq.c | ||
3 | * | ||
4 | * cpufreq driver for the SuperH processors. | 2 | * cpufreq driver for the SuperH processors. |
5 | * | 3 | * |
6 | * Copyright (C) 2002 - 2012 Paul Mundt | 4 | * Copyright (C) 2002 - 2012 Paul Mundt |