summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/perf/hv-gpci.c
diff options
context:
space:
mode:
authorMadhavan Srinivasan <maddy@linux.vnet.ibm.com>2017-11-22 10:45:39 +0530
committerMichael Ellerman <mpe@ellerman.id.au>2017-11-22 23:04:23 +1100
commit73ce9aec65b17433e18163d07eb5cb6bf114bd6c (patch)
tree5542875410b1fb049b34625245de3bfa10f708c6 /arch/powerpc/perf/hv-gpci.c
parentde34787f1096cce38e2590be0013b44418d14546 (diff)
downloadblackbird-op-linux-73ce9aec65b17433e18163d07eb5cb6bf114bd6c.tar.gz
blackbird-op-linux-73ce9aec65b17433e18163d07eb5cb6bf114bd6c.zip
powerpc/perf: Fix IMC_MAX_PMU macro
IMC_MAX_PMU is used for static storage (per_nest_pmu_arr) which holds nest pmu information. Current value for the macro is 32 based on the initial number of nest pmu units supported by the nest microcode. But going forward, microcode could support more nest units. Instead of static storage, patch to fix the code to dynamically allocate an array based on the number of nest imc units found in the device tree. Fixes:8f95faaac56c1 ('powerpc/powernv: Detect and create IMC device') Signed-off-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/perf/hv-gpci.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud