Skip to content

Commit

Permalink
tracing: report_latency() in trace_sched_wakeup.c can return boolean
Browse files Browse the repository at this point in the history
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/[email protected]

Signed-off-by: Yaowei Bai <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
  • Loading branch information
baihuahua authored and rostedt committed Nov 2, 2015
1 parent 67aedeb commit 26ab2ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions kernel/trace/trace_sched_wakeup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 26ab2ef

Please sign in to comment.