]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/perf: Pass struct imc_events as a parameter to imc_parse_event()
authorAnju T Sudhakar <anju@linux.vnet.ibm.com>
Mon, 11 Dec 2017 05:58:37 +0000 (11:28 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 19 Jan 2018 12:04:44 +0000 (23:04 +1100)
commit6c53adcbe2ff4f0facfc0fd295b12896bc413bd3
treeecf21a363309204ca76d5a41fa16c6fdc8f4ce36
parentf4db8fe7e36fe280e0f051c6f11de90e7b7a74c0
powerpc/perf: Pass struct imc_events as a parameter to imc_parse_event()

Remove the allocation of struct imc_events from imc_parse_event().
Instead pass imc_events as a parameter to imc_parse_event(), which is
a pointer to a slot in the array allocated in
update_events_in_group().

Reported-by: Dan Carpenter ("powerpc/perf: Fix a sizeof() typo so we allocate less memory")
Suggested-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Anju T Sudhakar <anju@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/imc-pmu.h
arch/powerpc/perf/imc-pmu.c