Skip to content

Commit

Permalink
eal: fix MCS lock header include
Browse files Browse the repository at this point in the history
[ upstream commit 3c2cca6 ]

Include 'rte_branch_prediction.h' to get the likely/unlikely macro
definitions.

Fixes: 2173f33 ("mcslock: add MCS queued lock implementation")

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
  • Loading branch information
bruce-richardson authored and bluca committed Feb 4, 2021
1 parent fc49e71 commit 364e006
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/librte_eal/include/generic/rte_mcslock.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <rte_lcore.h>
#include <rte_common.h>
#include <rte_pause.h>
#include <rte_branch_prediction.h>

/**
* The rte_mcslock_t type.
Expand Down

0 comments on commit 364e006

Please sign in to comment.