aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYaowei Bai <bywxiaobai@163.com>2015-09-29 10:43:30 -0400
committerSteven Rostedt <rostedt@goodmis.org>2015-11-02 14:20:19 -0500
commit79851821b2c94fc66cddb80b8b12dcfa09f6e7cb (patch)
treede2935faa9a7e2523c67e347bd27f6fea13f43eb
parent26ab2ef4516f5c9579b46188809f387406063262 (diff)
tracing: report_latency() in trace_irqsoff.c can return boolean
This patch makes report_latency return bool due to this particular function only using either one or zero as its return value. No functional change. Link: http://lkml.kernel.org/r/1443537816-5788-3-git-send-email-bywxiaobai@163.com Signed-off-by: Yaowei Bai <bywxiaobai@163.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r--kernel/trace/trace_irqsoff.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/trace/trace_irqsoff.c b/kernel/trace/trace_irqsoff.c
index eaf5291bcf63..e4e56589ec1d 100644
--- a/kernel/trace/trace_irqsoff.c
+++ b/kernel/trace/trace_irqsoff.c
@@ -282,16 +282,16 @@ static void irqsoff_print_header(struct seq_file *s)
282/* 282/*
283 * Should this new latency be reported/recorded? 283 * Should this new latency be reported/recorded?
284 */ 284 */
285static int report_latency(struct trace_array *tr, cycle_t delta) 285static bool report_latency(struct trace_array *tr, cycle_t delta)
286{ 286{
287 if (tracing_thresh) { 287 if (tracing_thresh) {
288 if (delta < tracing_thresh) 288 if (delta < tracing_thresh)
289 return 0; 289 return false;
290 } else { 290 } else {
291 if (delta <= tr->max_latency) 291 if (delta <= tr->max_latency)
292 return 0; 292 return false;
293 } 293 }
294 return 1; 294 return true;
295} 295}
296 296
297static void 297static void