rcu: optimize rcutiny
commitb554d7de8d112fca4188da3bf0d7f8b56f42fb95
authorEric Dumazet <eric.dumazet@gmail.com>
Thu, 28 Apr 2011 05:23:45 +0000 (28 07:23 +0200)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 6 May 2011 06:16:59 +0000 (5 23:16 -0700)
tree3641a25b7356da1bdcb52f6ff160f605ed778cd4
parent2655d57ef35aa327a2e58a1c5dc7b65c65003f4e
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>
kernel/rcutiny.c