From: Shaohua Li Date: Thu, 16 Jun 2011 23:02:54 +0000 (-0700) Subject: rcu: Avoid unnecessary self-wakeup of per-CPU kthreads X-Git-Tag: v3.2-rc1~165^2^2~43 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1eb521210a8c9823038abe4ddfe8c69e713ec17d;p=pandora-kernel.git 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 Signed-off-by: Paul E. McKenney Signed-off-by: Paul E. McKenney --- Reading git-diff-tree failed