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

[Xen-devel] [RFC PATCH 6/7] cpufreq: make CPU Frequency scaling drivers visible for XEN_DOM0 config



Xen hypervisor changes the CPU Frequency using the CPU
Frequency scaling drivers in the kernel Dom0. Thus those
drivers should be visible in the menuconfig in case
kernel Dom0.

Signed-off-by: Oleksandr Dmytryshyn <oleksandr.dmytryshyn@xxxxxxxxxxxxxxx>
---
 drivers/Makefile        |  2 ++
 drivers/cpufreq/Kconfig | 10 +++++++++-
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/drivers/Makefile b/drivers/Makefile
index f8c79ae..3e411d9 100644
--- a/drivers/Makefile
+++ b/drivers/Makefile
@@ -107,7 +107,9 @@ obj-$(CONFIG_ISDN)          += isdn/
 obj-$(CONFIG_EDAC)             += edac/
 obj-$(CONFIG_EISA)             += eisa/
 obj-y                          += lguest/
+
 obj-$(CONFIG_CPU_FREQ)         += cpufreq/
+obj-$(CONFIG_XEN_DOM0)         += cpufreq/
 obj-$(CONFIG_CPU_IDLE)         += cpuidle/
 obj-y                          += mmc/
 obj-$(CONFIG_MEMSTICK)         += memstick/
diff --git a/drivers/cpufreq/Kconfig b/drivers/cpufreq/Kconfig
index cbcb21e..4531e04 100644
--- a/drivers/cpufreq/Kconfig
+++ b/drivers/cpufreq/Kconfig
@@ -15,11 +15,15 @@ config CPU_FREQ
 
          If in doubt, say N.
 
-if CPU_FREQ
+if CPU_FREQ || XEN_DOM0
 
 config CPU_FREQ_TABLE
        tristate
 
+endif
+
+if CPU_FREQ
+
 config CPU_FREQ_GOV_COMMON
        bool
 
@@ -184,6 +188,10 @@ config CPU_FREQ_GOV_CONSERVATIVE
 
          If in doubt, say N.
 
+endif
+
+if CPU_FREQ || XEN_DOM0
+
 config GENERIC_CPUFREQ_CPU0
        tristate "Generic CPU0 cpufreq driver"
        depends on HAVE_CLK && REGULATOR && PM_OPP && OF
-- 
1.9.1


_______________________________________________
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®.