tools/memory-model: Add support for synchronize_srcu_expedited()
authorPaul E. McKenney <paulmck@linux.ibm.com>
Tue, 19 Mar 2019 20:25:03 +0000 (13:25 -0700)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Thu, 4 Apr 2019 20:48:34 +0000 (13:48 -0700)
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>
tools/memory-model/linux-kernel.def

index 0c3f0ef486f46085a05c8d2b5fcfbfb58d4478a8..551eeaa389d40cc952d2db833c1837a9265ced15 100644 (file)
@@ -51,6 +51,7 @@ synchronize_rcu_expedited() { __fence{sync-rcu}; }
 srcu_read_lock(X)  __srcu{srcu-lock}(X)
 srcu_read_unlock(X,Y) { __srcu{srcu-unlock}(X,Y); }
 synchronize_srcu(X)  { __srcu{sync-srcu}(X); }
+synchronize_srcu_expedited(X)  { __srcu{sync-srcu}(X); }
 
 // Atomic
 atomic_read(X) READ_ONCE(*X)