git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6e24bf
)
mcslock: use WFE in lock for aarch64
author
Feifei Wang
<feifei.wang2@arm.com>
Wed, 20 Oct 2021 03:03:35 +0000
(11:03 +0800)
committer
David Marchand
<david.marchand@redhat.com>
Wed, 20 Oct 2021 06:22:41 +0000
(08:22 +0200)
Instead of polling for previous lock holder unlocking, use
wait_until_equal API.
Signed-off-by: Feifei Wang <feifei.wang2@arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
lib/eal/include/generic/rte_mcslock.h
patch
|
blob
|
history
diff --git
a/lib/eal/include/generic/rte_mcslock.h
b/lib/eal/include/generic/rte_mcslock.h
index
9f323bd
..
34f33c6
100644
(file)
--- a/
lib/eal/include/generic/rte_mcslock.h
+++ b/
lib/eal/include/generic/rte_mcslock.h
@@
-84,8
+84,7
@@
rte_mcslock_lock(rte_mcslock_t **msl, rte_mcslock_t *me)
* to spin on me->locked until the previous lock holder resets
* the me->locked using mcslock_unlock().
*/
- while (__atomic_load_n(&me->locked, __ATOMIC_ACQUIRE))
- rte_pause();
+ rte_wait_until_equal_32((uint32_t *)&me->locked, 0, __ATOMIC_ACQUIRE);
}
/**