[v11,6/9] lib/pmu: use build system defined RTE_LIB_PMU macro
Checks
Commit Message
RTE_LIB_PMU is defined by build system automatically if DPDK is build
for Linux. Otherwise it's missing.
That said all cases where conditional compilation is required
can be handled without introducing other macros.
Signed-off-by: Tomasz Duszynski <tduszynski@marvell.com>
---
lib/pmu/rte_pmu.h | 3 ---
1 file changed, 3 deletions(-)
@@ -34,13 +34,10 @@
#include <rte_debug.h>
#include <rte_lcore.h>
-#define RTE_PMU_SUPPORTED
#if defined(RTE_ARCH_ARM64)
#include "rte_pmu_pmc_arm64.h"
#elif defined(RTE_ARCH_X86_64)
#include "rte_pmu_pmc_x86_64.h"
-#else
-#undef RTE_PMU_SUPPORTED
#endif
#ifdef __cplusplus