cpufreq: ia64: move cpufreq driver to drivers/cpufreq
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 4 Apr 2013 12:54:20 +0000 (12:54 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 10 Apr 2013 11:19:25 +0000 (13:19 +0200)
This patch moves cpufreq driver of IA64 architecture to drivers/cpufreq.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
arch/ia64/Kconfig
arch/ia64/kernel/Makefile
arch/ia64/kernel/cpufreq/Kconfig [deleted file]
arch/ia64/kernel/cpufreq/Makefile [deleted file]
drivers/cpufreq/Kconfig
drivers/cpufreq/Makefile
drivers/cpufreq/ia64-acpi-cpufreq.c [moved from arch/ia64/kernel/cpufreq/acpi-cpufreq.c with 99% similarity]

index 9a02f71c6b1f7cb5e8339e55f77bb82ad9b8d8d3..152b5f29d048641875c556987a5bef1cd9c93d9a 100644 (file)
@@ -591,9 +591,9 @@ source "kernel/power/Kconfig"
 source "drivers/acpi/Kconfig"
 
 if PM
-
-source "arch/ia64/kernel/cpufreq/Kconfig"
-
+menu "CPU Frequency scaling"
+source "drivers/cpufreq/Kconfig"
+endmenu
 endif
 
 endmenu
index d959c84904bec8bb978da5d11fc3ba0bfb54be26..20678a9ed11a83081083b2aca0ac8bd84b5b9fcb 100644 (file)
@@ -23,7 +23,6 @@ obj-$(CONFIG_SMP)             += smp.o smpboot.o
 obj-$(CONFIG_NUMA)             += numa.o
 obj-$(CONFIG_PERFMON)          += perfmon_default_smpl.o
 obj-$(CONFIG_IA64_CYCLONE)     += cyclone.o
-obj-$(CONFIG_CPU_FREQ)         += cpufreq/
 obj-$(CONFIG_IA64_MCA_RECOVERY)        += mca_recovery.o
 obj-$(CONFIG_KPROBES)          += kprobes.o jprobes.o
 obj-$(CONFIG_DYNAMIC_FTRACE)   += ftrace.o
diff --git a/arch/ia64/kernel/cpufreq/Kconfig b/arch/ia64/kernel/cpufreq/Kconfig
deleted file mode 100644 (file)
index 2d9d527..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-
-#
-# CPU Frequency scaling
-#
-
-menu "CPU Frequency scaling"
-
-source "drivers/cpufreq/Kconfig"
-
-if CPU_FREQ
-
-comment "CPUFreq processor drivers"
-
-config IA64_ACPI_CPUFREQ
-       tristate "ACPI Processor P-States driver"
-       select CPU_FREQ_TABLE
-       depends on ACPI_PROCESSOR
-       help
-       This driver adds a CPUFreq driver which utilizes the ACPI
-       Processor Performance States.
-
-       For details, take a look at <file:Documentation/cpu-freq/>.
-
-       If in doubt, say N.
-
-endif   # CPU_FREQ
-
-endmenu
-
diff --git a/arch/ia64/kernel/cpufreq/Makefile b/arch/ia64/kernel/cpufreq/Makefile
deleted file mode 100644 (file)
index 4838f2a..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-obj-$(CONFIG_IA64_ACPI_CPUFREQ)                += acpi-cpufreq.o
-
index d7ce6ccf5c9106ee94575dfe3b29bffc81e03220..a2f1600c78f8566b25a03dbb30bd133b0547330c 100644 (file)
@@ -218,6 +218,23 @@ config AVR32_AT32AP_CPUFREQ
 
 endmenu
 
+menu "CPUFreq processor drivers"
+depends on IA64
+
+config IA64_ACPI_CPUFREQ
+       tristate "ACPI Processor P-States driver"
+       select CPU_FREQ_TABLE
+       depends on ACPI_PROCESSOR
+       help
+       This driver adds a CPUFreq driver which utilizes the ACPI
+       Processor Performance States.
+
+       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"
index 2d6dbf30862b3339ee3452c9354634ad8ceaa54c..ab681337e6d49d72d3134efc62b803e669c3c4aa 100644 (file)
@@ -81,3 +81,4 @@ obj-$(CONFIG_AVR32_AT32AP_CPUFREQ)    += at32ap-cpufreq.o
 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
similarity index 99%
rename from arch/ia64/kernel/cpufreq/acpi-cpufreq.c
rename to drivers/cpufreq/ia64-acpi-cpufreq.c
index 4700fef8d1fa172c3c4e7d7a9ebb67015de104d4..c0075dbaa6336a2ad92d1138dce15ef4ab6cb66f 100644 (file)
@@ -1,5 +1,4 @@
 /*
- * arch/ia64/kernel/cpufreq/acpi-cpufreq.c
  * This file provides the ACPI based P-state support. This
  * module works with generic cpufreq infrastructure. Most of
  * the code is based on i386 version