powerpc/fadump: make crash memory ranges array allocation generic
authorHari Bathini <hbathini@linux.ibm.com>
Wed, 11 Sep 2019 14:55:05 +0000 (20:25 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 13 Sep 2019 14:04:44 +0000 (00:04 +1000)
commite4fc48fb4d34f7e7d42eb980a9c130bb93aba3b9
tree55811b7e8a14057f4ec4414864adeed76198de22
parent5000a17afbd56b4e58b7f72ac77eabb92c418412
powerpc/fadump: make crash memory ranges array allocation generic

Make allocate_crash_memory_ranges() and free_crash_memory_ranges()
functions generic to reuse them for memory management of all types of
dynamic memory range arrays. This change helps in memory management
of reserved ranges array to be added later.

Signed-off-by: Hari Bathini <hbathini@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/156821369863.5656.4375667005352155892.stgit@hbathini.in.ibm.com
arch/powerpc/include/asm/fadump-internal.h
arch/powerpc/kernel/fadump.c