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
use macro to declare constructor functions
[dpdk.git]
/
examples
/
performance-thread
/
common
/
lthread_sched.c
diff --git
a/examples/performance-thread/common/lthread_sched.c
b/examples/performance-thread/common/lthread_sched.c
index
e100c41
..
779aeb1
100644
(file)
--- a/
examples/performance-thread/common/lthread_sched.c
+++ b/
examples/performance-thread/common/lthread_sched.c
@@
-117,8
+117,7
@@
uint64_t diag_mask;
/* constructor */
-void lthread_sched_ctor(void) __attribute__ ((constructor));
-void lthread_sched_ctor(void)
+RTE_INIT(lthread_sched_ctor)
{
memset(schedcore, 0, sizeof(schedcore));
rte_atomic16_init(&num_schedulers);