[PATCH 3/4] perf/ftrace: Small cleanup
From: Peter Zijlstra
Date: Wed Oct 11 2017 - 04:09:37 EST
ops->flags _should_ be 0 at this point, so setting the flag using
bitwise or is a bit daft.
Requested-by: Steven Rostedt <rostedt@xxxxxxxxxxx>
Signed-off-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>
---
kernel/trace/trace_event_perf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/kernel/trace/trace_event_perf.c
+++ b/kernel/trace/trace_event_perf.c
@@ -362,7 +362,7 @@ static int perf_ftrace_function_register
{
struct ftrace_ops *ops = &event->ftrace_ops;
- ops->flags |= FTRACE_OPS_FL_RCU;
+ ops->flags = FTRACE_OPS_FL_RCU;
ops->func = perf_ftrace_function_call;
ops->private = (void *)(unsigned long)nr_cpu_ids;