+ rcu-introduce-rcu_soon_pending-interface.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     RCU: introduce rcu_soon_pending() interface

has been added to the -mm tree.  Its filename is

     rcu-introduce-rcu_soon_pending-interface.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>

Introduce rcu_soon_pending() interface.  This can be used to tell if there
will be a new rcu batch on a cpu soon by looking at the curlist pointer. 
This can be used to avoid to enter a tickless idle state where the cpu
would miss that a new batch is ready when rcu_start_batch would be called
on a different cpu.

Signed-off-by: Heiko Carstens <heiko.carstens@xxxxxxxxxx>
Cc: Dipankar Sarma <dipankar@xxxxxxxxxx>
Cc: Manfred Spraul <manfred@xxxxxxxxxxxxxxxx>
Cc: Martin Schwidefsky <schwidefsky@xxxxxxxxxx>
Cc: "Paul E. McKenney" <paulmck@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 include/linux/rcupdate.h |    1 +
 kernel/rcupdate.c        |    8 ++++++++
 2 files changed, 9 insertions(+)

diff -puN include/linux/rcupdate.h~rcu-introduce-rcu_soon_pending-interface include/linux/rcupdate.h
--- 25/include/linux/rcupdate.h~rcu-introduce-rcu_soon_pending-interface	Mon Apr 24 16:03:21 2006
+++ 25-akpm/include/linux/rcupdate.h	Mon Apr 24 16:03:21 2006
@@ -132,6 +132,7 @@ static inline void rcu_bh_qsctr_inc(int 
 }
 
 extern int rcu_pending(int cpu);
+extern int rcu_soon_pending(int cpu);
 
 /**
  * rcu_read_lock - mark the beginning of an RCU read-side critical section.
diff -puN kernel/rcupdate.c~rcu-introduce-rcu_soon_pending-interface kernel/rcupdate.c
--- 25/kernel/rcupdate.c~rcu-introduce-rcu_soon_pending-interface	Mon Apr 24 16:03:21 2006
+++ 25-akpm/kernel/rcupdate.c	Mon Apr 24 16:03:21 2006
@@ -485,6 +485,14 @@ int rcu_pending(int cpu)
 		__rcu_pending(&rcu_bh_ctrlblk, &per_cpu(rcu_bh_data, cpu));
 }
 
+int rcu_soon_pending(int cpu)
+{
+	struct rcu_data *rdp = &per_cpu(rcu_data, cpu);
+	struct rcu_data *rdp_bh = &per_cpu(rcu_bh_data, cpu);
+
+	return (!!rdp->curlist || !!rdp_bh->curlist);
+}
+
 void rcu_check_callbacks(int cpu, int user)
 {
 	if (user || 
_

Patches currently in -mm which might be from heiko.carstens@xxxxxxxxxx are

s390-make-qeth-buildable.patch
ipv4-inet_init-fs_initcall.patch
rcu-introduce-rcu_soon_pending-interface.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

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux