The patch titled RCU: add comments to rcu_pending/rcu_needs_cpu has been added to the -mm tree. Its filename is rcu-introduce-rcu_needs_cpu-interface-fix.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this From: Heiko Carstens <heiko.carstens@xxxxxxxxxx> Add some comments to rcu_pending() and rcu_needs_cpu(). Signed-off-by: Heiko Carstens <heiko.carstens@xxxxxxxxxx> Cc: "Paul E. McKenney" <paulmck@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- kernel/rcupdate.c | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+) diff -puN kernel/rcupdate.c~rcu-introduce-rcu_needs_cpu-interface-fix kernel/rcupdate.c --- 25/kernel/rcupdate.c~rcu-introduce-rcu_needs_cpu-interface-fix Thu Apr 27 15:24:54 2006 +++ 25-akpm/kernel/rcupdate.c Thu Apr 27 15:24:54 2006 @@ -479,12 +479,30 @@ static int __rcu_pending(struct rcu_ctrl return 0; } +/** + * rcu_pending - Check for pending RCU work on cpu. + * @cpu: cpu to check. + * + * Does RCU have some work pending on the specified cpu, so that there is a + * need to invoke rcu_check_callbacks() on the cpu? + */ int rcu_pending(int cpu) { return __rcu_pending(&rcu_ctrlblk, &per_cpu(rcu_data, cpu)) || __rcu_pending(&rcu_bh_ctrlblk, &per_cpu(rcu_bh_data, cpu)); } +/** + * rcu_needs_cpu - Determine if cpu will still be needed by RCU. + * @cpu: cpu to check. + * + * Determine whether the specified cpu will still be needed by RCU, or whether + * it can be turned off (e.g. by entering a tickless idle state). + * Note the difference to rcu_pending() which checks if there is some work to + * do that can be done immediately. While this function in addition checks if + * there would be some work to do if e.g. a different cpu finished working on + * the current batch. + */ int rcu_needs_cpu(int cpu) { struct rcu_data *rdp = &per_cpu(rcu_data, cpu); _ Patches currently in -mm which might be from heiko.carstens@xxxxxxxxxx are s390-make-qeth-buildable.patch s390-bug-in-setup_rt_frame.patch s390-instruction-processing-damage-handling.patch rcu-introduce-rcu_needs_cpu-interface.patch rcu-introduce-rcu_needs_cpu-interface-fix.patch s390-exploit-rcu_needs_cpu-interface.patch ipv4-inet_init-fs_initcall.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html