]> git.baikalelectronics.ru Git - kernel.git/commit
cpumask: convert RCU implementations
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Dec 2008 23:42:26 +0000 (10:12 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Dec 2008 23:42:26 +0000 (10:12 +1030)
commit806e803440f4f2213ab08ebd3f52fd1df215447f
tree0dd55c07abfee9e1f4c83f9e8cbf853f817ff226
parentf6a47dfa63305ff2b66a9740f438600abac33ebe
cpumask: convert RCU implementations

Impact: use new cpumask API.

rcu_ctrlblk contains a cpumask, and it's highly optimized so I don't want
a cpumask_var_t (ie. a pointer) for the CONFIG_CPUMASK_OFFSTACK case.  It
could use a dangling bitmap, and be allocated in __rcu_init to save memory,
but for the moment we use a bitmap.

(Eventually 'struct cpumask' will be undefined for CONFIG_CPUMASK_OFFSTACK,
so we use a bitmap here to show we really mean it).

We remove on-stack cpumasks, using cpumask_var_t for
rcu_torture_shuffle_tasks() and for_each_cpu_and in force_quiescent_state().

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
include/linux/rcuclassic.h
kernel/rcuclassic.c
kernel/rcupreempt.c
kernel/rcutorture.c