Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Emde <C.Emde@osadl.org>2010-03-11 00:18:18 +0100
committerThomas Gleixner <tglx@linutronix.de>2010-03-11 12:23:41 +0100
commitf6e20d04816d1cbb4000ba68461e39516fdb23e2 (patch)
treef77a66a2491d3f06255156e85937c295334cf229
parent4216e30a7199d574f98acc68fa1e08a2f8b7cc2a (diff)
tracing: Define pid functions for all config combinations
If CONFIG_MISSED_TIMER_OFFSETS_HIST was defined and CONFIG_WAKEUP_LATENCY_HIST was not, the pid-related functions remained undefined. Fix the erroneous #ifdef around the pid-related functions. Signed-off-by: Carsten Emde <C.Emde@osadl.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r--kernel/trace/latency_hist.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/trace/latency_hist.c b/kernel/trace/latency_hist.c
index ce67060715e5..7c2661559f25 100644
--- a/kernel/trace/latency_hist.c
+++ b/kernel/trace/latency_hist.c
@@ -401,7 +401,8 @@ latency_hist_reset(struct file *file, const char __user *a,
return size;
}
-#ifdef CONFIG_WAKEUP_LATENCY_HIST
+#if defined(CONFIG_WAKEUP_LATENCY_HIST) || \
+ defined(CONFIG_MISSED_TIMER_OFFSETS_HIST)
static ssize_t
show_pid(struct file *file, char __user *ubuf, size_t cnt, loff_t *ppos)
{