git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bus/fslmc: add support to detect SoC version
[dpdk.git]
/
examples
/
performance-thread
/
common
/
lthread_mutex.c
diff --git
a/examples/performance-thread/common/lthread_mutex.c
b/examples/performance-thread/common/lthread_mutex.c
index
074d066
..
c1bc627
100644
(file)
--- a/
examples/performance-thread/common/lthread_mutex.c
+++ b/
examples/performance-thread/common/lthread_mutex.c
@@
-44,7
+44,6
@@
#include <sys/time.h>
#include <sys/mman.h>
#include <sys/time.h>
#include <sys/mman.h>
-#include <rte_config.h>
#include <rte_per_lcore.h>
#include <rte_log.h>
#include <rte_spinlock.h>
#include <rte_per_lcore.h>
#include <rte_log.h>
#include <rte_spinlock.h>
@@
-171,7
+170,6
@@
int lthread_mutex_lock(struct lthread_mutex *m)
_suspend();
/* resumed, must loop and compete for the lock again */
}
_suspend();
/* resumed, must loop and compete for the lock again */
}
- LTHREAD_ASSERT(0);
return 0;
}
return 0;
}
@@
-232,7
+230,7
@@
int lthread_mutex_unlock(struct lthread_mutex *m)
if (unblocked != NULL) {
rte_atomic64_dec(&m->count);
DIAG_EVENT(m, LT_DIAG_MUTEX_UNLOCKED, m, unblocked);
if (unblocked != NULL) {
rte_atomic64_dec(&m->count);
DIAG_EVENT(m, LT_DIAG_MUTEX_UNLOCKED, m, unblocked);
-
LTHREAD
_ASSERT(unblocked->sched != NULL);
+
RTE
_ASSERT(unblocked->sched != NULL);
_ready_queue_insert((struct lthread_sched *)
unblocked->sched, unblocked);
break;
_ready_queue_insert((struct lthread_sched *)
unblocked->sched, unblocked);
break;