From: Paul E. McKenney Date: Thu, 20 Jun 2013 20:50:40 +0000 (-0700) Subject: rcu: Avoid redundant grace-period kthread wakeups X-Git-Tag: v3.12-rc1~170^2^2^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1eafd31c640d6799c63136246a59d608bed93c74;p=pandora-kernel.git rcu: Avoid redundant grace-period kthread wakeups When setting up an in-the-future "advanced" grace period, the code needs to wake up the relevant grace-period kthread, which it currently does unconditionally. However, this results in needless wakeups in the case where the advanced grace period is being set up by the grace-period kthread itself, which is a non-uncommon situation. This commit therefore checks to see if the running thread is the grace-period kthread, and avoids doing the irq_work_queue()-mediated wakeup in that case. Signed-off-by: Paul E. McKenney Reviewed-by: Josh Triplett --- Reading git-diff-tree failed