summaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_sched_wakeup.c
diff options
context:
space:
mode:
authorYaowei Bai <bywxiaobai@163.com>2015-09-29 22:43:29 +0800
committerSteven Rostedt <rostedt@goodmis.org>2015-11-02 14:20:06 -0500
commit26ab2ef4516f5c9579b46188809f387406063262 (patch)
tree056c8578487fbfdd950b953bddd888452712eca5 /kernel/trace/trace_sched_wakeup.c
parent67aedeb857fb10b34cd125f962b109ed440b3833 (diff)
downloadop-kernel-dev-26ab2ef4516f5c9579b46188809f387406063262.zip
op-kernel-dev-26ab2ef4516f5c9579b46188809f387406063262.tar.gz
tracing: report_latency() in trace_sched_wakeup.c can return boolean
This patch makes report_latency return bool to improve readability, indicating whether this new latency should be reported/recorded. No functional change. Link: http://lkml.kernel.org/r/1443537816-5788-2-git-send-email-bywxiaobai@163.com Signed-off-by: Yaowei Bai <bywxiaobai@163.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_sched_wakeup.c')
-rw-r--r--kernel/trace/trace_sched_wakeup.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/trace/trace_sched_wakeup.c b/kernel/trace/trace_sched_wakeup.c
index 4661442..855c2c7 100644
--- a/kernel/trace/trace_sched_wakeup.c
+++ b/kernel/trace/trace_sched_wakeup.c
@@ -346,16 +346,16 @@ static void wakeup_print_header(struct seq_file *s)
/*
* Should this new latency be reported/recorded?
*/
-static int report_latency(struct trace_array *tr, cycle_t delta)
+static bool report_latency(struct trace_array *tr, cycle_t delta)
{
if (tracing_thresh) {
if (delta < tracing_thresh)
- return 0;
+ return false;
} else {
if (delta <= tr->max_latency)
- return 0;
+ return false;
}
- return 1;
+ return true;
}
static void
OpenPOWER on IntegriCloud