powerpc/fadump: add helper functions
authorHari Bathini <hbathini@linux.ibm.com>
Wed, 11 Sep 2019 14:46:36 +0000 (20:16 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 13 Sep 2019 14:04:41 +0000 (00:04 +1000)
commit961cf26a98648a294de45ea6f806dc84dfc91197
tree2a59a474bb9e2c4364aae7a11df0c9c25ebf602d
parentca986d7fa7e7f7b3f018f227b999f35e654fbb79
powerpc/fadump: add helper functions

Add helper functions to setup & free CPU notes buffer and to find if a
given memory area is contiguous. Also, use boolean as return type for
the function that finds if boot memory area is contiguous. While at
it, save the virtual address of CPU notes buffer instead of physical
address as virtual address is used often.

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