malloc: simplify heap initialisation
[dpdk.git] / lib / librte_eal / common / include / rte_malloc_heap.h
index ea2a3f5..5e139cf 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;