diff options
Diffstat (limited to 'kernel/trace/trace_branch.c')
-rw-r--r-- | kernel/trace/trace_branch.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/kernel/trace/trace_branch.c b/kernel/trace/trace_branch.c index 75489de546b6..7afe426ea528 100644 --- a/kernel/trace/trace_branch.c +++ b/kernel/trace/trace_branch.c | |||
@@ -200,8 +200,12 @@ void trace_likely_condition(struct ftrace_branch_data *f, int val, int expect) | |||
200 | } | 200 | } |
201 | #endif /* CONFIG_BRANCH_TRACER */ | 201 | #endif /* CONFIG_BRANCH_TRACER */ |
202 | 202 | ||
203 | void ftrace_likely_update(struct ftrace_branch_data *f, int val, int expect) | 203 | void ftrace_likely_update(struct ftrace_branch_data *f, int val, |
204 | int expect, int is_constant) | ||
204 | { | 205 | { |
206 | /* A constant is always correct */ | ||
207 | if (is_constant) | ||
208 | val = expect; | ||
205 | /* | 209 | /* |
206 | * I would love to have a trace point here instead, but the | 210 | * I would love to have a trace point here instead, but the |
207 | * trace point code is so inundated with unlikely and likely | 211 | * trace point code is so inundated with unlikely and likely |