diff options
-rw-r--r-- | kernel/trace/ftrace.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index b69966f0f144..c9e09d86e1d8 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c | |||
@@ -170,7 +170,8 @@ static int __unregister_ftrace_function(struct ftrace_ops *ops) | |||
170 | */ | 170 | */ |
171 | static DEFINE_SPINLOCK(ftrace_hash_lock); | 171 | static DEFINE_SPINLOCK(ftrace_hash_lock); |
172 | #define ftrace_hash_lock(flags) spin_lock_irqsave(&ftrace_hash_lock, flags) | 172 | #define ftrace_hash_lock(flags) spin_lock_irqsave(&ftrace_hash_lock, flags) |
173 | #define ftrace_hash_unlock(flags) spin_lock_irqsave(&ftrace_hash_lock, flags) | 173 | #define ftrace_hash_unlock(flags) \ |
174 | spin_unlock_irqrestore(&ftrace_hash_lock, flags) | ||
174 | #else | 175 | #else |
175 | /* This is protected via the ftrace_lock with MCOUNT_RECORD. */ | 176 | /* This is protected via the ftrace_lock with MCOUNT_RECORD. */ |
176 | #define ftrace_hash_lock(flags) do { (void)(flags); } while (0) | 177 | #define ftrace_hash_lock(flags) do { (void)(flags); } while (0) |