Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 110783
b: refs/heads/master
c: 1c50b72
h: refs/heads/master
i:
  110781: ba597a2
  110779: ff3acc4
  110775: 6e43a8b
  110767: 763a56d
  110751: f576e57
  110719: aee1d86
v: v3
  • Loading branch information
Mathieu Desnoyers authored and Ingo Molnar committed Sep 30, 2008
1 parent ec531e0 commit 32b5eff
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3a72dc8eb5a7122fff439a22bd22486a4fff505c
refs/heads/master: 1c50b728c3e734150b8a4a8310ce3e01bc5c70be
20 changes: 20 additions & 0 deletions trunk/include/linux/rcupdate.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,26 @@ struct rcu_head {
*/
#define rcu_read_unlock_bh() __rcu_read_unlock_bh()

/**
* rcu_read_lock_sched - mark the beginning of a RCU-classic critical section
*
* Should be used with either
* - synchronize_sched()
* or
* - call_rcu_sched() and rcu_barrier_sched()
* on the write-side to insure proper synchronization.
*/
#define rcu_read_lock_sched() preempt_disable()

/*
* rcu_read_unlock_sched - marks the end of a RCU-classic critical section
*
* See rcu_read_lock_sched for more information.
*/
#define rcu_read_unlock_sched() preempt_enable()



/**
* rcu_dereference - fetch an RCU-protected pointer in an
* RCU read-side critical section. This pointer may later
Expand Down

0 comments on commit 32b5eff

Please sign in to comment.