[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCHv4] 12/28] build: convert HAS_CPUFREQ use to Kconfig



Use the Kconfig generated CONFIG_HAS_CPUFREQ defines in the code base.

CC: Keir Fraser <keir@xxxxxxx>
CC: Jan Beulich <jbeulich@xxxxxxxx>
CC: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
CC: Liu Jinsong <jinsong.liu@xxxxxxxxxxxxxxx>
Signed-off-by: Doug Goldstein <cardoe@xxxxxxxxxx>
---
 xen/arch/x86/Kconfig        | 1 +
 xen/arch/x86/Rules.mk       | 1 -
 xen/drivers/Kconfig         | 2 ++
 xen/drivers/Makefile        | 2 +-
 xen/drivers/cpufreq/Kconfig | 4 ++++
 5 files changed, 8 insertions(+), 2 deletions(-)
 create mode 100644 xen/drivers/cpufreq/Kconfig

diff --git a/xen/arch/x86/Kconfig b/xen/arch/x86/Kconfig
index 7e96227..fcafb56 100644
--- a/xen/arch/x86/Kconfig
+++ b/xen/arch/x86/Kconfig
@@ -8,6 +8,7 @@ config X86
        select HAS_PASSTHROUGH
        select HAS_VIDEO
        select HAS_VGA
+       select HAS_CPUFREQ
        select HAS_PCI
        select HAS_NS16550
        select HAS_GDBSX
diff --git a/xen/arch/x86/Rules.mk b/xen/arch/x86/Rules.mk
index 95f52a4..367c61e 100644
--- a/xen/arch/x86/Rules.mk
+++ b/xen/arch/x86/Rules.mk
@@ -1,7 +1,6 @@
 ########################################
 # x86-specific definitions
 
-HAS_CPUFREQ := y
 HAS_EHCI := y
 HAS_KEXEC := y
 HAS_GDBSX := y
diff --git a/xen/drivers/Kconfig b/xen/drivers/Kconfig
index f0ad01e..bc3a54f 100644
--- a/xen/drivers/Kconfig
+++ b/xen/drivers/Kconfig
@@ -4,6 +4,8 @@ source "drivers/acpi/Kconfig"
 
 source "drivers/char/Kconfig"
 
+source "drivers/cpufreq/Kconfig"
+
 source "drivers/passthrough/Kconfig"
 
 source "drivers/pci/Kconfig"
diff --git a/xen/drivers/Makefile b/xen/drivers/Makefile
index 01d6b8d..7bbb654 100644
--- a/xen/drivers/Makefile
+++ b/xen/drivers/Makefile
@@ -1,5 +1,5 @@
 subdir-y += char
-subdir-$(HAS_CPUFREQ) += cpufreq
+subdir-$(CONFIG_HAS_CPUFREQ) += cpufreq
 subdir-$(CONFIG_HAS_PCI) += pci
 subdir-$(CONFIG_HAS_PASSTHROUGH) += passthrough
 subdir-$(CONFIG_HAS_ACPI) += acpi
diff --git a/xen/drivers/cpufreq/Kconfig b/xen/drivers/cpufreq/Kconfig
new file mode 100644
index 0000000..00be480
--- /dev/null
+++ b/xen/drivers/cpufreq/Kconfig
@@ -0,0 +1,4 @@
+
+# Select HAS_CPUFREQ if CPU frequency scaling is supported
+config HAS_CPUFREQ
+       bool
-- 
2.4.10


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.