• Ingo Molnar's avatar
    sched: optimize sched_clock() a bit · 7cbaef9c
    Ingo Molnar authored
    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>
    7cbaef9c
tsc.c 21.5 KB