diff options
Diffstat (limited to 'kernel/trace/trace_branch.c')
-rw-r--r-- | kernel/trace/trace_branch.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/trace/trace_branch.c b/kernel/trace/trace_branch.c index 877ee88e6a74..6c00feb3bac7 100644 --- a/kernel/trace/trace_branch.c +++ b/kernel/trace/trace_branch.c | |||
@@ -6,6 +6,7 @@ | |||
6 | #include <linux/kallsyms.h> | 6 | #include <linux/kallsyms.h> |
7 | #include <linux/seq_file.h> | 7 | #include <linux/seq_file.h> |
8 | #include <linux/spinlock.h> | 8 | #include <linux/spinlock.h> |
9 | #include <linux/irqflags.h> | ||
9 | #include <linux/debugfs.h> | 10 | #include <linux/debugfs.h> |
10 | #include <linux/uaccess.h> | 11 | #include <linux/uaccess.h> |
11 | #include <linux/module.h> | 12 | #include <linux/module.h> |
@@ -41,7 +42,7 @@ probe_likely_condition(struct ftrace_branch_data *f, int val, int expect) | |||
41 | if (unlikely(!tr)) | 42 | if (unlikely(!tr)) |
42 | return; | 43 | return; |
43 | 44 | ||
44 | raw_local_irq_save(flags); | 45 | local_irq_save(flags); |
45 | cpu = raw_smp_processor_id(); | 46 | cpu = raw_smp_processor_id(); |
46 | if (atomic_inc_return(&tr->data[cpu]->disabled) != 1) | 47 | if (atomic_inc_return(&tr->data[cpu]->disabled) != 1) |
47 | goto out; | 48 | goto out; |
@@ -73,7 +74,7 @@ probe_likely_condition(struct ftrace_branch_data *f, int val, int expect) | |||
73 | 74 | ||
74 | out: | 75 | out: |
75 | atomic_dec(&tr->data[cpu]->disabled); | 76 | atomic_dec(&tr->data[cpu]->disabled); |
76 | raw_local_irq_restore(flags); | 77 | local_irq_restore(flags); |
77 | } | 78 | } |
78 | 79 | ||
79 | static inline | 80 | static inline |