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:Robin Murphy <robin.murphy@arm.com> Link: https://lore.kernel.org/r/0cabff2e5839ddc0979e757c55515966f65359e4.1638530442.git.robin.murphy@arm.com Signed-off-by:
Will Deacon <will@kernel.org> (cherry picked from commit 558a0780) Signed-off-by:
Robin Peng <robinpeng@google.com>
Loading
Please sign in to comment