diff options
author | Paul E. McKenney <paulmck@linux.ibm.com> | 2019-03-19 16:25:03 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.ibm.com> | 2019-04-04 16:48:34 -0400 |
commit | a5220e7d2e1b13e62c0d5eab3fbfaef401186e3b (patch) | |
tree | e9e107743896cf24dff1ed3fdc5294fb3555ae6d /tools/memory-model | |
parent | f1887143f5984f23d2360f2efed6ef481bb41117 (diff) |
tools/memory-model: Add support for synchronize_srcu_expedited()
Given that synchronize_rcu_expedited() is supported, this commit adds
support for synchronize_srcu_expedited().
Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
Acked-by: Andrea Parri <andrea.parri@amarulasolutions.com>
Diffstat (limited to 'tools/memory-model')
-rw-r--r-- | tools/memory-model/linux-kernel.def | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/memory-model/linux-kernel.def b/tools/memory-model/linux-kernel.def index 0c3f0ef486f4..551eeaa389d4 100644 --- a/tools/memory-model/linux-kernel.def +++ b/tools/memory-model/linux-kernel.def | |||
@@ -51,6 +51,7 @@ synchronize_rcu_expedited() { __fence{sync-rcu}; } | |||
51 | srcu_read_lock(X) __srcu{srcu-lock}(X) | 51 | srcu_read_lock(X) __srcu{srcu-lock}(X) |
52 | srcu_read_unlock(X,Y) { __srcu{srcu-unlock}(X,Y); } | 52 | srcu_read_unlock(X,Y) { __srcu{srcu-unlock}(X,Y); } |
53 | synchronize_srcu(X) { __srcu{sync-srcu}(X); } | 53 | synchronize_srcu(X) { __srcu{sync-srcu}(X); } |
54 | synchronize_srcu_expedited(X) { __srcu{sync-srcu}(X); } | ||
54 | 55 | ||
55 | // Atomic | 56 | // Atomic |
56 | atomic_read(X) READ_ONCE(*X) | 57 | atomic_read(X) READ_ONCE(*X) |