sched: do not trace sched_clock
The tracer uses sched_clock, so do not trace it. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
parent
677aa9f77e
commit
c6531cce6e
@ -884,12 +884,12 @@ static unsigned long long __cpu_clock(int cpu)
|
|||||||
* For kernel-internal use: high-speed (but slightly incorrect) per-cpu
|
* For kernel-internal use: high-speed (but slightly incorrect) per-cpu
|
||||||
* clock constructed from sched_clock():
|
* clock constructed from sched_clock():
|
||||||
*/
|
*/
|
||||||
unsigned long long cpu_clock(int cpu)
|
unsigned long long notrace cpu_clock(int cpu)
|
||||||
{
|
{
|
||||||
unsigned long long prev_cpu_time, time, delta_time;
|
unsigned long long prev_cpu_time, time, delta_time;
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
|
|
||||||
local_irq_save(flags);
|
raw_local_irq_save(flags);
|
||||||
prev_cpu_time = per_cpu(prev_cpu_time, cpu);
|
prev_cpu_time = per_cpu(prev_cpu_time, cpu);
|
||||||
time = __cpu_clock(cpu) + per_cpu(time_offset, cpu);
|
time = __cpu_clock(cpu) + per_cpu(time_offset, cpu);
|
||||||
delta_time = time-prev_cpu_time;
|
delta_time = time-prev_cpu_time;
|
||||||
@ -898,7 +898,7 @@ unsigned long long cpu_clock(int cpu)
|
|||||||
time = __sync_cpu_clock(time, cpu);
|
time = __sync_cpu_clock(time, cpu);
|
||||||
per_cpu(prev_cpu_time, cpu) = time;
|
per_cpu(prev_cpu_time, cpu) = time;
|
||||||
}
|
}
|
||||||
local_irq_restore(flags);
|
raw_local_irq_restore(flags);
|
||||||
|
|
||||||
return time;
|
return time;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user