diff options
-rw-r--r-- | kernel/trace/ftrace.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 8323082dbc21..39df3192e725 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c | |||
@@ -2286,7 +2286,6 @@ static void ftrace_run_update_code(int command) | |||
2286 | 2286 | ||
2287 | static ftrace_func_t saved_ftrace_func; | 2287 | static ftrace_func_t saved_ftrace_func; |
2288 | static int ftrace_start_up; | 2288 | static int ftrace_start_up; |
2289 | static int global_start_up; | ||
2290 | 2289 | ||
2291 | static void control_ops_free(struct ftrace_ops *ops) | 2290 | static void control_ops_free(struct ftrace_ops *ops) |
2292 | { | 2291 | { |
@@ -2350,8 +2349,7 @@ static int ftrace_shutdown(struct ftrace_ops *ops, int command) | |||
2350 | 2349 | ||
2351 | ftrace_hash_rec_disable(ops, 1); | 2350 | ftrace_hash_rec_disable(ops, 1); |
2352 | 2351 | ||
2353 | if (!global_start_up) | 2352 | ops->flags &= ~FTRACE_OPS_FL_ENABLED; |
2354 | ops->flags &= ~FTRACE_OPS_FL_ENABLED; | ||
2355 | 2353 | ||
2356 | command |= FTRACE_UPDATE_CALLS; | 2354 | command |= FTRACE_UPDATE_CALLS; |
2357 | 2355 | ||