aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace
diff options
context:
space:
mode:
authorMing Lei <ming.lei@canonical.com>2011-09-29 16:07:23 -0400
committerRafael J. Wysocki <rjw@sisk.pl>2011-09-29 16:07:23 -0400
commit2a5306cc5f383b0e7414c75e458111afd4a563a4 (patch)
tree0725cb2cf142f1bb52eb93cf0cce77f3798b2f72 /kernel/trace
parentc3dc2f14622a06488f11452b6efd1e02c5a8548b (diff)
PM / Tracing: build rpm-traces.c only if CONFIG_PM_RUNTIME is set
Do not build kernel/trace/rpm-traces.c if CONFIG_PM_RUNTIME is not set, which avoids a build failure. [rjw: Added the changelog and modified the subject slightly.] Signed-off-by: Ming Lei <ming.lei@canonical.com> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'kernel/trace')
-rw-r--r--kernel/trace/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/trace/Makefile b/kernel/trace/Makefile
index 56bdab5b3793..f49405f842f4 100644
--- a/kernel/trace/Makefile
+++ b/kernel/trace/Makefile
@@ -53,7 +53,9 @@ endif
53obj-$(CONFIG_EVENT_TRACING) += trace_events_filter.o 53obj-$(CONFIG_EVENT_TRACING) += trace_events_filter.o
54obj-$(CONFIG_KPROBE_EVENT) += trace_kprobe.o 54obj-$(CONFIG_KPROBE_EVENT) += trace_kprobe.o
55obj-$(CONFIG_TRACEPOINTS) += power-traces.o 55obj-$(CONFIG_TRACEPOINTS) += power-traces.o
56ifeq ($(CONFIG_PM_RUNTIME),y)
56obj-$(CONFIG_TRACEPOINTS) += rpm-traces.o 57obj-$(CONFIG_TRACEPOINTS) += rpm-traces.o
58endif
57ifeq ($(CONFIG_TRACING),y) 59ifeq ($(CONFIG_TRACING),y)
58obj-$(CONFIG_KGDB_KDB) += trace_kdb.o 60obj-$(CONFIG_KGDB_KDB) += trace_kdb.o
59endif 61endif