This adds Kconfig options for DEBUG and VERBOSE_DEBUG to the cpufreq subsystem, This is pretty useful for developers who want to debug cpufreq subsystem and don't want to editing the Makefile manually each time they want to debug. Signed-off-by: Viresh Kumar <viresh.kumar@xxxxxxxxxx> --- drivers/cpufreq/Kconfig | 14 ++++++++++++++ drivers/cpufreq/Makefile | 4 ++++ 2 files changed, 18 insertions(+) diff --git a/drivers/cpufreq/Kconfig b/drivers/cpufreq/Kconfig index e24a2a1..b9ee95c 100644 --- a/drivers/cpufreq/Kconfig +++ b/drivers/cpufreq/Kconfig @@ -17,6 +17,20 @@ config CPU_FREQ if CPU_FREQ +config CPUFREQ_DEBUG + bool "cpufreq debugging" + help + This is an option for use by developers; most people should say N + here. This enables cpufreq core and debugging. + +config CPUFREQ_VDEBUG + bool "cpufreq verbose debugging" + depends on CPUFREQ_DEBUG != n + help + This is an option for use by developers; most people should say N + here. This enables deeper (more verbose) debugging of the cpufreq + core and drivers. + config CPU_FREQ_TABLE tristate diff --git a/drivers/cpufreq/Makefile b/drivers/cpufreq/Makefile index fe4cd26..df4cfc8 100644 --- a/drivers/cpufreq/Makefile +++ b/drivers/cpufreq/Makefile @@ -1,3 +1,7 @@ +# CPUfreq core & drivers debugging +ccflags-$(CONFIG_CPUFREQ_DEBUG) := -DDEBUG +ccflags-$(CONFIG_CPUFREQ_VDEBUG) += -DVERBOSE_DEBUG + # CPUfreq core obj-$(CONFIG_CPU_FREQ) += cpufreq.o # CPUfreq stats -- 1.7.12.rc2.18.g61b472e -- To unsubscribe from this list: send the line "unsubscribe cpufreq" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html