summaryrefslogtreecommitdiffstats
path: root/kernel/sched_fair.c
diff options
context:
space:
mode:
authorShaohua Li <shaohua.li@intel.com>2011-06-16 16:02:54 -0700
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2011-09-28 21:36:34 -0700
commit1eb521210a8c9823038abe4ddfe8c69e713ec17d (patch)
treef9fc70df7c25f80def12aeb231475405043eb1ed /kernel/sched_fair.c
parent1f288094807861ec1e48c428d2c49ccf7aaf3767 (diff)
downloadop-kernel-dev-1eb521210a8c9823038abe4ddfe8c69e713ec17d.zip
op-kernel-dev-1eb521210a8c9823038abe4ddfe8c69e713ec17d.tar.gz
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>
Diffstat (limited to 'kernel/sched_fair.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud