Skip to content
Commit 7cbaef9c authored by Ingo Molnar's avatar Ingo Molnar
Browse files

sched: optimize sched_clock() a bit



sched_clock() uses cycles_2_ns() needlessly - which is an irq-disabling
variant of __cycles_2_ns().

Most of the time sched_clock() is called with irqs disabled already.
The few places that call it with irqs enabled need to be updated.

Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 0d12cdd5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment