]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/include/rte_malloc_heap.h
malloc: simplify heap initialisation
[dpdk.git] / lib / librte_eal / common / include / rte_malloc_heap.h
index ea2a3f5294d82c6d92912958c8fb104b406769d1..5e139cf7b3262fb6b1d499ec08bcb91d6d161dd5 100644 (file)
 #include <stddef.h>
 #include <rte_spinlock.h>
 
-enum heap_state {
-       NOT_INITIALISED = 0,
-       INITIALISING,
-       INITIALISED
-};
-
 /**
  * Structure to hold malloc heap
  */
 struct malloc_heap {
-       enum heap_state volatile initialised;
        rte_spinlock_t lock;
        struct malloc_elem * volatile free_head;
        unsigned mz_count;