mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-18 15:09:53 +00:00
ftrace: build fix
no need to backmerge, only affects ftrace-enabled kernels. (which is not the default) Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
parent
5e3ca0ec76
commit
2577046740
@ -1965,7 +1965,9 @@ tracing_read_pipe(struct file *filp, char __user *ubuf,
|
|||||||
static cpumask_t mask;
|
static cpumask_t mask;
|
||||||
static int start;
|
static int start;
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
|
#ifdef CONFIG_FTRACE
|
||||||
int ftrace_save;
|
int ftrace_save;
|
||||||
|
#endif
|
||||||
int read = 0;
|
int read = 0;
|
||||||
int cpu;
|
int cpu;
|
||||||
int len;
|
int len;
|
||||||
@ -2044,8 +2046,10 @@ tracing_read_pipe(struct file *filp, char __user *ubuf,
|
|||||||
|
|
||||||
cpus_clear(mask);
|
cpus_clear(mask);
|
||||||
local_irq_save(flags);
|
local_irq_save(flags);
|
||||||
|
#ifdef CONFIG_FTRACE
|
||||||
ftrace_save = ftrace_enabled;
|
ftrace_save = ftrace_enabled;
|
||||||
ftrace_enabled = 0;
|
ftrace_enabled = 0;
|
||||||
|
#endif
|
||||||
smp_wmb();
|
smp_wmb();
|
||||||
for_each_possible_cpu(cpu) {
|
for_each_possible_cpu(cpu) {
|
||||||
data = iter->tr->data[cpu];
|
data = iter->tr->data[cpu];
|
||||||
@ -2087,7 +2091,9 @@ tracing_read_pipe(struct file *filp, char __user *ubuf,
|
|||||||
data = iter->tr->data[cpu];
|
data = iter->tr->data[cpu];
|
||||||
atomic_dec(&data->disabled);
|
atomic_dec(&data->disabled);
|
||||||
}
|
}
|
||||||
|
#ifdef CONFIG_FTRACE
|
||||||
ftrace_enabled = ftrace_save;
|
ftrace_enabled = ftrace_save;
|
||||||
|
#endif
|
||||||
local_irq_restore(flags);
|
local_irq_restore(flags);
|
||||||
|
|
||||||
/* Now copy what we have to the user */
|
/* Now copy what we have to the user */
|
||||||
|
Loading…
Reference in New Issue
Block a user