]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rcu: Avoid unnecessary self-wakeup of per-CPU kthreads
authorShaohua Li <shaohua.li@intel.com>
Thu, 16 Jun 2011 23:02:54 +0000 (16:02 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 10 Aug 2011 02:28:22 +0000 (19:28 -0700)
commit34e8d9d78517b0954883628feb6cb070848951b7
treeebc534cf9557c19a5f8444c2b76bbd686e5f31e8
parent26af59a8058252d373ea0756e45bc654170b665d
rcu: Avoid unnecessary self-wakeup of per-CPU kthreads

There are a number of cases where the RCU can find additional work
for the per-CPU kthread within the context of that per-CPU kthread.
In such cases, the per-CPU kthread is already running, so attempting
to wake itself up does nothing except waste CPU cycles.  This commit
therefore checks to see if it is in the per-CPU kthread context,
omitting the wakeup in this case.

Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcutree_plugin.h