Commit b6a79743 authored by Robin Murphy's avatar Robin Murphy Committed by Treehugger Robot
Browse files

UPSTREAM: perf/arm-cmn: Move group validation data off-stack



With the value of CMN_MAX_DTMS increasing significantly, our validation
data structure is set to get quite big. Technically we could pack it at
least twice as densely, since we only need around 19 bits of information
per DTM, but that makes the code even more mind-bogglingly impenetrable,
and even half of "quite big" may still be uncomfortably large for a
stack frame (~1KB). Just move it to an off-stack allocation instead.

Bug: 247832918
Change-Id: Ic8dbd216bb85e2db53c91cfba85c670cc030e1f7
Signed-off-by: default avatarRobin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/0cabff2e5839ddc0979e757c55515966f65359e4.1638530442.git.robin.murphy@arm.com


Signed-off-by: default avatarWill Deacon <will@kernel.org>
(cherry picked from commit 558a0780)
Signed-off-by: default avatarRobin Peng <robinpeng@google.com>
parent 9a74f34a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment