]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5963a78f01ab8f3340f8a49e9e42ee54359d3fa3
tree55811b7e8a14057f4ec4414864adeed76198de22
parent5ccc1c06715933a4b525344269103b72b045a8f6
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