]> git.hungrycats.org Git - linux/commit
[PATCH] rcu: clean up code
authorDipankar Sarma <dipankar@in.ibm.com>
Mon, 23 Aug 2004 05:57:53 +0000 (22:57 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 23 Aug 2004 05:57:53 +0000 (22:57 -0700)
commite86e2311ae3c844a1efe4f6d569dfb548f7f58c7
tree19b9b0cf77ffa8c1785c7a5b969306d5f2705caa
parentdaf86b08a178f950c0e0ec073c25cc392dbbc789
[PATCH] rcu: clean up code

Avoids per_cpu calculations and also prepares for call_rcu_bh().

At OLS, Rusty had suggested getting rid of many per_cpu() calculations in RCU
code and making the code simpler.  I had already done that for the rcu-softirq
patch earlier, so I am splitting that into two patch.  This first patch cleans
up the macros and uses pointers to the rcu per-cpu data directly to manipulate
the callback queues.  This is useful for the call-rcu-bh patch (to follow)
which introduces a new RCU mechanism - call_rcu_bh().  Both generic and
softirq rcu can then use the same code, they work different global and percpu
data.

Signed-off-by: Dipankar Sarma <dipankar@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/rcupdate.h
kernel/rcupdate.c
kernel/sched.c