diff options
Diffstat (limited to 'kernel')
| -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 0731e81a5bb..672a749dbba 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c | |||
| @@ -2432,10 +2432,12 @@ tracing_cpumask_write(struct file *filp, const char __user *ubuf, | |||
| 2432 | if (cpumask_test_cpu(cpu, tracing_cpumask) && | 2432 | if (cpumask_test_cpu(cpu, tracing_cpumask) && |
| 2433 | !cpumask_test_cpu(cpu, tracing_cpumask_new)) { | 2433 | !cpumask_test_cpu(cpu, tracing_cpumask_new)) { |
| 2434 | atomic_inc(&global_trace.data[cpu]->disabled); | 2434 | atomic_inc(&global_trace.data[cpu]->disabled); |
| 2435 | ring_buffer_record_disable_cpu(global_trace.buffer, cpu); | ||
| 2435 | } | 2436 | } |
| 2436 | if (!cpumask_test_cpu(cpu, tracing_cpumask) && | 2437 | if (!cpumask_test_cpu(cpu, tracing_cpumask) && |
| 2437 | cpumask_test_cpu(cpu, tracing_cpumask_new)) { | 2438 | cpumask_test_cpu(cpu, tracing_cpumask_new)) { |
| 2438 | atomic_dec(&global_trace.data[cpu]->disabled); | 2439 | atomic_dec(&global_trace.data[cpu]->disabled); |
| 2440 | ring_buffer_record_enable_cpu(global_trace.buffer, cpu); | ||
| 2439 | } | 2441 | } |
| 2440 | } | 2442 | } |
| 2441 | arch_spin_unlock(&ftrace_max_lock); | 2443 | arch_spin_unlock(&ftrace_max_lock); |
