summaryrefslogtreecommitdiffstats
path: root/lib/bch.c
diff options
context:
space:
mode:
authorEric Dumazet2011-04-28 07:23:45 +0200
committerPaul E. McKenney2011-05-06 08:16:59 +0200
commitb554d7de8d112fca4188da3bf0d7f8b56f42fb95 (patch)
tree3641a25b7356da1bdcb52f6ff160f605ed778cd4 /lib/bch.c
parentrcu: prevent call_rcu() from diving into rcu core if irqs disabled (diff)
downloadkernel-qcow2-linux-b554d7de8d112fca4188da3bf0d7f8b56f42fb95.tar.gz
kernel-qcow2-linux-b554d7de8d112fca4188da3bf0d7f8b56f42fb95.tar.xz
kernel-qcow2-linux-b554d7de8d112fca4188da3bf0d7f8b56f42fb95.zip
rcu: optimize rcutiny
rcu_sched_qs() currently calls local_irq_save()/local_irq_restore() up to three times. Remove irq masking from rcu_qsctr_help() / invoke_rcu_kthread() and do it once in rcu_sched_qs() / rcu_bh_qs() This generates smaller code as well. text data bss dec hex filename 2314 156 24 2494 9be kernel/rcutiny.old.o 2250 156 24 2430 97e kernel/rcutiny.new.o Fix an outdated comment for rcu_qsctr_help() Move invoke_rcu_kthread() definition before its use. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'lib/bch.c')
0 files changed, 0 insertions, 0 deletions