]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0c327b81a9c2e0de333f788993422968f2700818
tree2a59a474bb9e2c4364aae7a11df0c9c25ebf602d
parentf04090955b2e28de5b9c4fc13e0b4029da9274d1
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