Hi Dipankar, > Here is RCU for 2.5.36. It is just a rediff from earlier version. > The current rcu_poll is essentially a per-CPU version of the > rcu_poll patch in -aa series of kernel. Additionally it also supports > call_rcu_preempt() which allows RCU to work in preemptive kernels > transparently. The synchronize_kernel() interface uses call_rcu_preempt() > since it is not concerned about latencies. synchronize_kernel() is > equivalent of wait_for_later() in the "later" patch published > by Rusty earlier as a part of the new in-kernel module loader. > The module-loader needs only a part of rcu_poll funcationality. unfortunately it does not build the modules correctly. Output of "make modules" make[1]: Entering directory `/usr/src/linux-2.5.36-vanilla/fs' gcc -Wp,-MD,./.binfmt_misc.o.d -D__KERNEL__ -I/usr/src/linux-2.5.36-vanilla/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -nostdinc -iwithprefix include -DMODULE -DKBUILD_BASENAME=binfmt_misc -c -o binfmt_misc.o binfmt_misc.c In file included from /usr/src/linux-2.5.36-vanilla/include/linux/mm.h:4, from /usr/src/linux-2.5.36-vanilla/include/linux/pagemap.h:7, from binfmt_misc.c:26: /usr/src/linux-2.5.36-vanilla/include/linux/sched.h:480: parse error before `cpu_quiescent' /usr/src/linux-2.5.36-vanilla/include/linux/sched.h:480: warning: type defaults to `int' in declaration of `DEFINE_PER_CPU' /usr/src/linux-2.5.36-vanilla/include/linux/sched.h:480: warning: function declaration isn't a prototype In file included from /usr/src/linux-2.5.36-vanilla/include/linux/mm.h:4, from /usr/src/linux-2.5.36-vanilla/include/linux/pagemap.h:7, from binfmt_misc.c:26: /usr/src/linux-2.5.36-vanilla/include/linux/sched.h:1034: parse error before `rcu_preempt_cntr' /usr/src/linux-2.5.36-vanilla/include/linux/sched.h:1034: warning: type defaults to `int' in declaration of `DEFINE_PER_CPU' /usr/src/linux-2.5.36-vanilla/include/linux/sched.h:1034: warning: function declaration isn't a prototype /usr/src/linux-2.5.36-vanilla/include/linux/sched.h:1035: parse error before `*' /usr/src/linux-2.5.36-vanilla/include/linux/sched.h:1035: warning: type defaults to `int' in declaration of `DEFINE_PER_CPU' /usr/src/linux-2.5.36-vanilla/include/linux/sched.h:1035: warning: function declaration isn't a prototype /usr/src/linux-2.5.36-vanilla/include/linux/sched.h:1036: parse error before `*' /usr/src/linux-2.5.36-vanilla/include/linux/sched.h:1036: warning: type defaults to `int' in declaration of `DEFINE_PER_CPU' /usr/src/linux-2.5.36-vanilla/include/linux/sched.h:1036: warning: function declaration isn't a prototype /usr/src/linux-2.5.36-vanilla/include/linux/sched.h: In function `rcu_switch_preempt_cntr': /usr/src/linux-2.5.36-vanilla/include/linux/sched.h:1041: `curr_preempt_cntr__per_cpu' undeclared (first use in this function) /usr/src/linux-2.5.36-vanilla/include/linux/sched.h:1041: (Each undeclared identifier is reported only once /usr/src/linux-2.5.36-vanilla/include/linux/sched.h:1041: for each function it appears in.) /usr/src/linux-2.5.36-vanilla/include/linux/sched.h:1042: `next_preempt_cntr__per_cpu' undeclared (first use in this function) /usr/src/linux-2.5.36-vanilla/include/linux/sched.h: In function `rcu_preempt_get': /usr/src/linux-2.5.36-vanilla/include/linux/sched.h:1062: `next_preempt_cntr__per_cpu' undeclared (first use in this function) /usr/src/linux-2.5.36-vanilla/include/linux/sched.h: In function `is_rcu_cpu_preempted': /usr/src/linux-2.5.36-vanilla/include/linux/sched.h:1069: `curr_preempt_cntr__per_cpu' undeclared (first use in this function) /usr/src/linux-2.5.36-vanilla/include/linux/sched.h:1070: warning: control reaches end of non-void function make[1]: *** [binfmt_misc.o] Error 1 make[1]: Leaving directory `/usr/src/linux-2.5.36-vanilla/fs' make: *** [fs] Error 2 root@codeman:[/usr/src/linux-2.5.36-vanilla] # 2.5.36 vanilla + your patch. .config attached. -- Kind regards Marc-Christian Petersen http://sourceforge.net/projects/wolk PGP/GnuPG Key: 1024D/569DE2E3DB441A16 Fingerprint: 3469 0CF8 CA7E 0042 7824 080A 569D E2E3 DB44 1A16 Key available at www.keyserver.net. Encrypted e-mail preferred.