Commit 26ab2ef4 authored by Yaowei Bai's avatar Yaowei Bai Committed by Steven Rostedt

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.comSigned-off-by: default avatarYaowei Bai <bywxiaobai@163.com>
Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent 67aedeb8
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment