• Stanislaw Gruszka's avatar
    posix-cpu-timers: Optimize run_posix_cpu_timers() · 29f87b79
    Stanislaw Gruszka authored
    We can optimize and simplify things taking into account signal->cputimer
    is always running when we have configured any process wide cpu timer.
    
    In check_process_timers(), we don't have to check if new updated value of
    signal->cputime_expires is smaller, since we maintain new first expiration
    time ({prof,virt,sched}_expires) in code flow and all other writes to
    expiration cache are protected by sighand->siglock .
    Signed-off-by: default avatarStanislaw Gruszka <sgruszka@redhat.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Ingo Molnar <mingo@elte.hu>
    Cc: Oleg Nesterov <oleg@redhat.com>
    Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
    Cc: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
    Cc: Balbir Singh <balbir@in.ibm.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    29f87b79
posix-cpu-timers.c 42.7 KB