diff options
| author | Steven Rostedt <srostedt@redhat.com> | 2008-11-20 23:57:47 -0500 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2008-11-23 05:39:28 -0500 |
| commit | 42f565e116e0408b5ddc21a33c4a4d41fd572420 (patch) | |
| tree | d4599c10d5771c91615e5ec9f6cdf4315b6e4091 /include/linux/compiler.h | |
| parent | a0a70c735ef714fe1b6777b571630c3d50c7b008 (diff) | |
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>
Diffstat (limited to 'include/linux/compiler.h')
| -rw-r--r-- | include/linux/compiler.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/compiler.h b/include/linux/compiler.h index c7d804a7a4d6..c25e525121f0 100644 --- a/include/linux/compiler.h +++ b/include/linux/compiler.h | |||
| @@ -87,7 +87,6 @@ void ftrace_likely_update(struct ftrace_branch_data *f, int val, int expect); | |||
| 87 | .file = __FILE__, \ | 87 | .file = __FILE__, \ |
| 88 | .line = __LINE__, \ | 88 | .line = __LINE__, \ |
| 89 | }; \ | 89 | }; \ |
| 90 | ______f.line = __LINE__; \ | ||
| 91 | ______r = likely_notrace(x); \ | 90 | ______r = likely_notrace(x); \ |
| 92 | ftrace_likely_update(&______f, ______r, 1); \ | 91 | ftrace_likely_update(&______f, ______r, 1); \ |
| 93 | ______r; \ | 92 | ______r; \ |
| @@ -102,7 +101,6 @@ void ftrace_likely_update(struct ftrace_branch_data *f, int val, int expect); | |||
| 102 | .file = __FILE__, \ | 101 | .file = __FILE__, \ |
| 103 | .line = __LINE__, \ | 102 | .line = __LINE__, \ |
| 104 | }; \ | 103 | }; \ |
| 105 | ______f.line = __LINE__; \ | ||
| 106 | ______r = unlikely_notrace(x); \ | 104 | ______r = unlikely_notrace(x); \ |
| 107 | ftrace_likely_update(&______f, ______r, 0); \ | 105 | ftrace_likely_update(&______f, ______r, 0); \ |
| 108 | ______r; \ | 106 | ______r; \ |
