mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
trace: remove extra assign in branch check
Impact: clean up of branch check The unlikely/likely profiler does an extra assign of the f.line. This is not needed since it is already calculated at compile time. Signed-off-by: Steven Rostedt <srostedt@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
a0a70c735e
commit
42f565e116
1 changed files with 0 additions and 2 deletions
|
@ -87,7 +87,6 @@ void ftrace_likely_update(struct ftrace_branch_data *f, int val, int expect);
|
|||
.file = __FILE__, \
|
||||
.line = __LINE__, \
|
||||
}; \
|
||||
______f.line = __LINE__; \
|
||||
______r = likely_notrace(x); \
|
||||
ftrace_likely_update(&______f, ______r, 1); \
|
||||
______r; \
|
||||
|
@ -102,7 +101,6 @@ void ftrace_likely_update(struct ftrace_branch_data *f, int val, int expect);
|
|||
.file = __FILE__, \
|
||||
.line = __LINE__, \
|
||||
}; \
|
||||
______f.line = __LINE__; \
|
||||
______r = unlikely_notrace(x); \
|
||||
ftrace_likely_update(&______f, ______r, 0); \
|
||||
______r; \
|
||||
|
|
Loading…
Reference in a new issue