Skip to content
  • Paul E. McKenney's avatar
    rcu: Allow dyntick-idle mode for CPUs with callbacks · aea1b35e
    Paul E. McKenney authored
    
    
    Currently, RCU does not permit a CPU to enter dyntick-idle mode if that
    CPU has any RCU callbacks queued.  This means that workloads for which
    each CPU wakes up and does some RCU updates every few ticks will never
    enter dyntick-idle mode.  This can result in significant unnecessary power
    consumption, so this patch permits a given to enter dyntick-idle mode if
    it has callbacks, but only if that same CPU has completed all current
    work for the RCU core.  We determine use rcu_pending() to determine
    whether a given CPU has completed all current work for the RCU core.
    
    Signed-off-by: default avatarPaul E. McKenney <paul.mckenney@linaro.org>
    Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
    aea1b35e