|
@@ -161,8 +161,8 @@ static int __unregister_ftrace_function(struct ftrace_ops *ops)
|
|
* not recorded via the compilation.
|
|
* not recorded via the compilation.
|
|
*/
|
|
*/
|
|
static DEFINE_SPINLOCK(ftrace_hash_lock);
|
|
static DEFINE_SPINLOCK(ftrace_hash_lock);
|
|
-#define ftrace_hash_lock(flags) spin_lock_irqsave(ftrace_hash_lock, flags)
|
|
|
|
-#define ftrace_hash_unlock(flags) spin_lock_irqsave(ftrace_hash_lock, flags)
|
|
|
|
|
|
+#define ftrace_hash_lock(flags) spin_lock_irqsave(&ftrace_hash_lock, flags)
|
|
|
|
+#define ftrace_hash_unlock(flags) spin_lock_irqsave(&ftrace_hash_lock, flags)
|
|
#else
|
|
#else
|
|
/* This is protected via the ftrace_lock with MCOUNT_RECORD. */
|
|
/* This is protected via the ftrace_lock with MCOUNT_RECORD. */
|
|
#define ftrace_hash_lock(flags) do { (void)flags; } while (0)
|
|
#define ftrace_hash_lock(flags) do { (void)flags; } while (0)
|