Skip to content

Commit 8682341

Browse files
Tomasz Duszynskidavid-marchand
authored andcommitted
pmu: use build system instead of custom macro
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 <[email protected]>
1 parent 47eecb1 commit 8682341

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/pmu/rte_pmu.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,10 @@
3434
#include <rte_debug.h>
3535
#include <rte_lcore.h>
3636

37-
#define RTE_PMU_SUPPORTED
3837
#if defined(RTE_ARCH_ARM64)
3938
#include "rte_pmu_pmc_arm64.h"
4039
#elif defined(RTE_ARCH_X86_64)
4140
#include "rte_pmu_pmc_x86_64.h"
42-
#else
43-
#undef RTE_PMU_SUPPORTED
4441
#endif
4542

4643
#ifdef __cplusplus

0 commit comments

Comments
 (0)