]> 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)
commitc9e2d98bc48f8c61a3f404240f5f2d092e0ee57c
tree2a59a474bb9e2c4364aae7a11df0c9c25ebf602d
parent2166584daa5bb8d4832a1401834c17d9950bc2b8
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