diff options
| -rw-r--r-- | kernel/trace/trace.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 0ed4df0c6a39..08a08bab57a3 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c | |||
| @@ -2669,10 +2669,12 @@ tracing_cpumask_write(struct file *filp, const char __user *ubuf, | |||
| 2669 | if (cpumask_test_cpu(cpu, tracing_cpumask) && | 2669 | if (cpumask_test_cpu(cpu, tracing_cpumask) && |
| 2670 | !cpumask_test_cpu(cpu, tracing_cpumask_new)) { | 2670 | !cpumask_test_cpu(cpu, tracing_cpumask_new)) { |
| 2671 | atomic_inc(&global_trace.data[cpu]->disabled); | 2671 | atomic_inc(&global_trace.data[cpu]->disabled); |
| 2672 | ring_buffer_record_disable_cpu(global_trace.buffer, cpu); | ||
| 2672 | } | 2673 | } |
| 2673 | if (!cpumask_test_cpu(cpu, tracing_cpumask) && | 2674 | if (!cpumask_test_cpu(cpu, tracing_cpumask) && |
| 2674 | cpumask_test_cpu(cpu, tracing_cpumask_new)) { | 2675 | cpumask_test_cpu(cpu, tracing_cpumask_new)) { |
| 2675 | atomic_dec(&global_trace.data[cpu]->disabled); | 2676 | atomic_dec(&global_trace.data[cpu]->disabled); |
| 2677 | ring_buffer_record_enable_cpu(global_trace.buffer, cpu); | ||
| 2676 | } | 2678 | } |
| 2677 | } | 2679 | } |
| 2678 | arch_spin_unlock(&ftrace_max_lock); | 2680 | arch_spin_unlock(&ftrace_max_lock); |
