Commit a5220e7d authored by Paul E. McKenney's avatar Paul E. McKenney

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: default avatarPaul E. McKenney <paulmck@linux.ibm.com>
Acked-by: default avatarAndrea Parri <andrea.parri@amarulasolutions.com>
parent f1887143
...@@ -51,6 +51,7 @@ synchronize_rcu_expedited() { __fence{sync-rcu}; } ...@@ -51,6 +51,7 @@ synchronize_rcu_expedited() { __fence{sync-rcu}; }
srcu_read_lock(X) __srcu{srcu-lock}(X) srcu_read_lock(X) __srcu{srcu-lock}(X)
srcu_read_unlock(X,Y) { __srcu{srcu-unlock}(X,Y); } srcu_read_unlock(X,Y) { __srcu{srcu-unlock}(X,Y); }
synchronize_srcu(X) { __srcu{sync-srcu}(X); } synchronize_srcu(X) { __srcu{sync-srcu}(X); }
synchronize_srcu_expedited(X) { __srcu{sync-srcu}(X); }
// Atomic // Atomic
atomic_read(X) READ_ONCE(*X) atomic_read(X) READ_ONCE(*X)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment