[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <bf2567a3c3b6f35c606ea8d71722048eefb0c45a.1350451100.git.viresh.kumar@linaro.org>
Date: Wed, 17 Oct 2012 10:50:24 +0530
From: Viresh Kumar <viresh.kumar@...aro.org>
To: rjw@...k.pl
Cc: cpufreq@...r.kernel.org, linux-pm@...r.kernel.org,
linux-kernel@...r.kernel.org, linaro-dev@...ts.linaro.org,
patches@...aro.org, pdsw-power-team@....com,
Viresh Kumar <viresh.kumar@...aro.org>
Subject: [PATCH 2/2] cpufreq: Debugging options for the cpufreq subsystem
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@...aro.org>
---
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 linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists