service: fix crash on exit
[dpdk.git] / lib / librte_eal / common / eal_memcfg.h
index 030f903..583fcb5 100644 (file)
@@ -5,15 +5,15 @@
 #ifndef EAL_MEMCFG_H
 #define EAL_MEMCFG_H
 
-#include <rte_config.h>
-#include <rte_eal_memconfig.h>
-#include <rte_malloc_heap.h>
 #include <rte_memory.h>
 #include <rte_memzone.h>
 #include <rte_pause.h>
+#include <rte_spinlock.h>
 #include <rte_rwlock.h>
 #include <rte_tailq.h>
 
+#include "malloc_heap.h"
+
 /**
  * Memory configuration shared across multiple processes.
  */
@@ -36,6 +36,7 @@ struct rte_mem_config {
        rte_rwlock_t mlock;   /**< used by memzones for thread safety. */
        rte_rwlock_t qlock;   /**< used by tailqs for thread safety. */
        rte_rwlock_t mplock;  /**< used by mempool library for thread safety. */
+       rte_spinlock_t tlock; /**< used by timer library for thread safety. */
 
        rte_rwlock_t memory_hotplug_lock;
        /**< Indicates whether memory hotplug request is in progress. */
@@ -68,6 +69,9 @@ struct rte_mem_config {
        uint32_t single_file_segments;
        /**< stored single file segments parameter. */
 
+       uint64_t tsc_hz;
+       /**< TSC rate */
+
        uint8_t dma_maskbits; /**< Keeps the more restricted dma mask. */
 };