mcslock: promote as stable
Since rte_mcslock APIs were introduced in 19.08 release, it is now possible to remove the experimental tag from: rte_mcslock_lock() rte_mcslock_unlock() rte_mcslock_trylock() rte_mcslock_is_locked() Signed-off-by: Joyce Kong <joyce.kong@arm.com> Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com> Acked-by: Phil Yang <phil.yang@arm.com> Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com> Acked-by: David Christensen <drc@linux.vnet.ibm.com>
This commit is contained in:
parent
d3a76807fc
commit
ebfe34c501
@ -237,7 +237,7 @@ M: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
|
||||
F: lib/librte_eal/include/rte_bitmap.h
|
||||
F: app/test/test_bitmap.c
|
||||
|
||||
MCSlock - EXPERIMENTAL
|
||||
MCSlock
|
||||
M: Phil Yang <phil.yang@arm.com>
|
||||
F: lib/librte_eal/include/generic/rte_mcslock.h
|
||||
F: app/test/test_mcslock.c
|
||||
|
@ -32,9 +32,6 @@ typedef struct rte_mcslock {
|
||||
} rte_mcslock_t;
|
||||
|
||||
/**
|
||||
* @warning
|
||||
* @b EXPERIMENTAL: This API may change without prior notice
|
||||
*
|
||||
* Take the MCS lock.
|
||||
*
|
||||
* @param msl
|
||||
@ -45,7 +42,6 @@ typedef struct rte_mcslock {
|
||||
* A pointer to a new node of MCS lock. Each CPU/thread acquiring the
|
||||
* lock should use its 'own node'.
|
||||
*/
|
||||
__rte_experimental
|
||||
static inline void
|
||||
rte_mcslock_lock(rte_mcslock_t **msl, rte_mcslock_t *me)
|
||||
{
|
||||
@ -85,9 +81,6 @@ rte_mcslock_lock(rte_mcslock_t **msl, rte_mcslock_t *me)
|
||||
}
|
||||
|
||||
/**
|
||||
* @warning
|
||||
* @b EXPERIMENTAL: This API may change without prior notice
|
||||
*
|
||||
* Release the MCS lock.
|
||||
*
|
||||
* @param msl
|
||||
@ -95,7 +88,6 @@ rte_mcslock_lock(rte_mcslock_t **msl, rte_mcslock_t *me)
|
||||
* @param me
|
||||
* A pointer to the node of MCS lock passed in rte_mcslock_lock.
|
||||
*/
|
||||
__rte_experimental
|
||||
static inline void
|
||||
rte_mcslock_unlock(rte_mcslock_t **msl, rte_mcslock_t *me)
|
||||
{
|
||||
@ -126,9 +118,6 @@ rte_mcslock_unlock(rte_mcslock_t **msl, rte_mcslock_t *me)
|
||||
}
|
||||
|
||||
/**
|
||||
* @warning
|
||||
* @b EXPERIMENTAL: This API may change without prior notice
|
||||
*
|
||||
* Try to take the lock.
|
||||
*
|
||||
* @param msl
|
||||
@ -138,7 +127,6 @@ rte_mcslock_unlock(rte_mcslock_t **msl, rte_mcslock_t *me)
|
||||
* @return
|
||||
* 1 if the lock is successfully taken; 0 otherwise.
|
||||
*/
|
||||
__rte_experimental
|
||||
static inline int
|
||||
rte_mcslock_trylock(rte_mcslock_t **msl, rte_mcslock_t *me)
|
||||
{
|
||||
@ -159,9 +147,6 @@ rte_mcslock_trylock(rte_mcslock_t **msl, rte_mcslock_t *me)
|
||||
}
|
||||
|
||||
/**
|
||||
* @warning
|
||||
* @b EXPERIMENTAL: This API may change without prior notice
|
||||
*
|
||||
* Test if the lock is taken.
|
||||
*
|
||||
* @param msl
|
||||
@ -169,7 +154,6 @@ rte_mcslock_trylock(rte_mcslock_t **msl, rte_mcslock_t *me)
|
||||
* @return
|
||||
* 1 if the lock is currently taken; 0 otherwise.
|
||||
*/
|
||||
__rte_experimental
|
||||
static inline int
|
||||
rte_mcslock_is_locked(rte_mcslock_t *msl)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user