[patch 01/16] RCU read sched notrace

Mathieu Desnoyers
2008-11-14T23:03:29Z

[-- Attachment #1: rcu-read-sched-notrace.patch --]
[-- Type: text/plain, Size: 1284 bytes --]

Add _notrace version to rcu_read_*_sched().

Impact: new API, useful for tracepoints and markers.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
CC: Peter Zijlstra <peterz@infradead.org>
CC: Paul E McKenney <paulmck@linux.vnet.ibm.com>
CC: 'Ingo Molnar' <mingo@elte.hu>
CC: akpm@linux-foundation.org
---
include/linux/rcupdate.h | 2 ++
1 file changed, 2 insertions(+)

Index: linux-2.6-lttng/include/linux/rcupdate.h
===================================================================
--- linux-2.6-lttng.orig/include/linux/rcupdate.h 2008-10-08 10:27:57.000000000 -0400
+++ linux-2.6-lttng/include/linux/rcupdate.h 2008-10-08 10:40:48.000000000 -0400
@@ -142,6 +142,7 @@ struct rcu_head {
* on the write-side to insure proper synchronization.
*/
#define rcu_read_lock_sched() preempt_disable()
+#define rcu_read_lock_sched_notrace() preempt_disable_notrace()

/*
* rcu_read_unlock_sched - marks the end of a RCU-classic critical section
@@ -149,6 +150,7 @@ struct rcu_head {
* See rcu_read_lock_sched for more information.
*/
#define rcu_read_unlock_sched() preempt_enable()
+#define rcu_read_unlock_sched_notrace() preempt_enable_notrace()