mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
build: convert HAS_CPUFREQ use to Kconfig
Use the Kconfig generated CONFIG_HAS_CPUFREQ defines in the code base. Signed-off-by: Doug Goldstein <cardoe@cardoe.com> Acked-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
1 parent
56f7d5db12
commit
994ce40a91
5 files changed
+8
-2
No files matched your search
@@ -4,6 +4,7 @@ config X86_64
|
||||
config X86
|
||||
def_bool y
|
||||
select HAS_ACPI
|
||||
select HAS_CPUFREQ
|
||||
select HAS_IOPORTS
|
||||
select HAS_NS16550
|
||||
select HAS_PASSTHROUGH
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
# x86-specific definitions
|
||||
|
||||
HAS_NUMA := y
|
||||
HAS_CPUFREQ := y
|
||||
HAS_EHCI := y
|
||||
HAS_KEXEC := y
|
||||
HAS_GDBSX := y
|
||||
|
||||
@@ -4,6 +4,8 @@ source "drivers/acpi/Kconfig"
|
||||
|
||||
source "drivers/char/Kconfig"
|
||||
|
||||
source "drivers/cpufreq/Kconfig"
|
||||
|
||||
source "drivers/passthrough/Kconfig"
|
||||
|
||||
source "drivers/pci/Kconfig"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
# Select HAS_CPUFREQ if CPU frequency scaling is supported
|
||||
config HAS_CPUFREQ
|
||||
bool
|
||||