• L
    cpuacct: reduce one NULL check in fast-path · 7a46c594
    Li Zefan 提交于
    Impact: micro-optimization
    
    In cpuacct_charge(), task_ca() will never return NULL, so change
    for(...) to do { } while(...) to save one NULL check.
    Signed-off-by: NLi Zefan <lizf@cn.fujitsu.com>
    Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
    Cc: Paul Menage <menage@google.com>
    Cc: Balbir Singh <balbir@linux.vnet.ibm.com>
    Cc: Bharata B Rao <bharata@linux.vnet.ibm.com>
    LKML-Reference: <49B863F5.2060400@cn.fujitsu.com>
    Signed-off-by: NIngo Molnar <mingo@elte.hu>
    7a46c594
sched.c 232.2 KB