Commit e2e4af7f authored by Kleber Sacilotto de Souza's avatar Kleber Sacilotto de Souza Committed by Stefan Bader

Revert "UBUNTU: SAUCE: perf/bench: Drop definition of BIT in numa.c"

BugLink: https://bugs.launchpad.net/bugs/1836585

This reverts commit 54cba3ec.

Commit "UBUNTU: SAUCE: perf/bench: Drop definition of BIT in numa.c" is
causing build failures on tools/perf/bench after stable upstream commit
"perf tools: No need to include bitops.h in util.h" removed the
inclusion of the header file where the BIT() macro is defined. This
causes perf build failures when libnuma is installed.
Signed-off-by: default avatarKleber Sacilotto de Souza <kleber.souza@canonical.com>
Acked-by: default avatarStefan Bader <stefan.bader@canonical.com>
Acked-by: default avatarKhalid Elmously <khalid.elmously@canonical.com>
Signed-off-by: default avatarKhalid Elmously <khalid.elmously@canonical.com>
parent 17dff983
......@@ -724,6 +724,8 @@ static int parse_nodes_opt(const struct option *opt __maybe_unused,
return 0;
}
#define BIT(x) (1ul << x)
static inline uint32_t lfsr_32(uint32_t lfsr)
{
const uint32_t taps = BIT(1) | BIT(5) | BIT(6) | BIT(31);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment