• M
    timers: Cache __next_timer_interrupt result · 97fd9ed4
    Martin Schwidefsky 提交于
    Each time a cpu goes to sleep on a NOHZ=y system the timer
    wheel is searched for the next timer interrupt. It can take
    quite a few cycles to find the next pending timer.
    
    This patch adds a field to tvec_base that caches the result of
    __next_timer_interrupt.
    
    The hit ratio is around 80% on my thinkpad under normal use, on
    a server I've seen hit ratios from 5% to 95% dependent on the
    workload.
    
    -v2: jiffies wrap fixes
    Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
    Acked-by: NThomas Gleixner <tglx@linutronix.de>
    Cc: john stultz <johnstul@us.ibm.com>
    Cc: Venki Pallipadi <venkatesh.pallipadi@intel.com>
    LKML-Reference: <20090721202505.7d56a079@skybase>
    Signed-off-by: NIngo Molnar <mingo@elte.hu>
    97fd9ed4
timer.c 44.0 KB