]> git.droids-corp.org - dpdk.git/blobdiff - drivers/event/dlb2/pf/dlb2_main.h
eal: use callbacks for power monitoring comparison
[dpdk.git] / drivers / event / dlb2 / pf / dlb2_main.h
index f082a948e06d9ce6c87ff9cb52e1fc09db720b42..9eeda482a3cf7e223e17bd0495421e1b5f61cfcf 100644 (file)
 #include <rte_spinlock.h>
 #include <rte_pci.h>
 #include <rte_bus_pci.h>
-
-#ifndef PAGE_SIZE
-#define PAGE_SIZE (sysconf(_SC_PAGESIZE))
-#endif
+#include <rte_eal_paging.h>
 
 #include "base/dlb2_hw_types.h"
 #include "../dlb2_user.h"
@@ -38,7 +35,6 @@ struct dlb2_dev {
         * hardware registers.
         */
        rte_spinlock_t resource_mutex;
-       rte_spinlock_t measurement_lock;
        bool worker_launched;
        u8 revision;
 };