projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26ab2ef
)
tracing: report_latency() in trace_irqsoff.c can return boolean
author
Yaowei Bai
<bywxiaobai@163.com>
Tue, 29 Sep 2015 14:43:30 +0000
(22:43 +0800)
committer
Steven Rostedt
<rostedt@goodmis.org>
Mon, 2 Nov 2015 19:20:19 +0000
(14:20 -0500)
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>
kernel/trace/trace_irqsoff.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/trace/trace_irqsoff.c
b/kernel/trace/trace_irqsoff.c
index eaf5291bcf631e8b08db9b6e9c4e5ed82f642408..e4e56589ec1d392c1734ddff45e87b6fc2dde2fb 100644
(file)
--- 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)
/*
* 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