From: Oleksandr Dmytryshyn Subject: [RFC PATCH v2 7/8] cpufreq: make cpufreq low-level drivers visible for CPUFREQ_DRV_OPS config Date: Thu, 16 Oct 2014 14:28:36 +0300 Message-ID: <1413458917-7348-8-git-send-email-oleksandr.dmytryshyn@globallogic.com> References: <1413458917-7348-1-git-send-email-oleksandr.dmytryshyn@globallogic.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1413458917-7348-1-git-send-email-oleksandr.dmytryshyn@globallogic.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: "Rafael J. Wysocki" , Tim Deegan , Stefano Stabellini , Ian Campbell List-Id: xen-devel@lists.xenproject.org Low-level cpufreq drivers should depend from CPUFREQ_DRV_OPS config instead of the CPU_FREQ config in case if we want to use additional high-level cpufreq driver. This patch is needed for implementation xen-based high-level cpufreq driver. Signed-off-by: Oleksandr Dmytryshyn --- drivers/Makefile | 2 +- drivers/cpufreq/Kconfig | 16 ++++++++++++---- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/drivers/Makefile b/drivers/Makefile index f8c79ae..58ef715 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -107,7 +107,7 @@ obj-$(CONFIG_ISDN) += isdn/ obj-$(CONFIG_EDAC) += edac/ obj-$(CONFIG_EISA) += eisa/ obj-y += lguest/ -obj-$(CONFIG_CPU_FREQ) += cpufreq/ +obj-$(CONFIG_CPUFREQ_DRV_OPS) += cpufreq/ obj-$(CONFIG_CPU_IDLE) += cpuidle/ obj-y += mmc/ obj-$(CONFIG_MEMSTICK) += memstick/ diff --git a/drivers/cpufreq/Kconfig b/drivers/cpufreq/Kconfig index 42a1aed..f5a8f84 100644 --- a/drivers/cpufreq/Kconfig +++ b/drivers/cpufreq/Kconfig @@ -19,14 +19,11 @@ config CPU_FREQ If in doubt, say N. -if CPU_FREQ +if CPUFREQ_DRV_OPS config CPU_FREQ_TABLE tristate -config CPU_FREQ_GOV_COMMON - bool - config CPU_FREQ_STAT tristate "CPU frequency translation statistics" select CPU_FREQ_TABLE @@ -49,6 +46,13 @@ config CPU_FREQ_STAT_DETAILS If in doubt, say N. +endif + +if CPU_FREQ + +config CPU_FREQ_GOV_COMMON + bool + choice prompt "Default CPUFreq governor" default CPU_FREQ_DEFAULT_GOV_USERSPACE if CPU_FREQ_SA1100 || CPU_FREQ_SA1110 @@ -188,6 +192,10 @@ config CPU_FREQ_GOV_CONSERVATIVE If in doubt, say N. +endif + +if CPUFREQ_DRV_OPS + config GENERIC_CPUFREQ_CPU0 tristate "Generic CPU0 cpufreq driver" depends on HAVE_CLK && REGULATOR && PM_OPP && OF -- 1.9.1