• Peter Zijlstra's avatar
    perf: Optimize hrtimer events · ba3dd36c
    Peter Zijlstra authored
    There is no need to re-initialize the hrtimer every time we start it,
    so don't do that (shaves a few cycles). Also, since we know hrtimers
    run at a fixed rate (nanoseconds) we can pre-compute the desired
    frequency at which they tick. This avoids us having to go through the
    whole adaptive frequency feedback logic (shaves another few cycles).
    Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
    LKML-Reference: <1297448589.5226.47.camel@laptop>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    ba3dd36c
perf_event.c 168 KB