mirror of
https://github.com/adulau/aha.git
synced 2025-01-01 13:46:24 +00:00
rcu: add rcu_read_*_sched_notrace()
Impact: new API, useful for tracepoints and markers. Add _notrace version to rcu_read_*_sched(). Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> Reviewed-by: Paul E McKenney <paulmck@linux.vnet.ibm.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
c91add5fa6
commit
954e100d22
1 changed files with 2 additions and 0 deletions
|
@ -142,6 +142,7 @@ struct rcu_head {
|
||||||
* on the write-side to insure proper synchronization.
|
* on the write-side to insure proper synchronization.
|
||||||
*/
|
*/
|
||||||
#define rcu_read_lock_sched() preempt_disable()
|
#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
|
* 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.
|
* See rcu_read_lock_sched for more information.
|
||||||
*/
|
*/
|
||||||
#define rcu_read_unlock_sched() preempt_enable()
|
#define rcu_read_unlock_sched() preempt_enable()
|
||||||
|
#define rcu_read_unlock_sched_notrace() preempt_enable_notrace()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue