crash_core: change parse_crashkernel() to support crashkernel=,high|low parsing
authorBaoquan He <bhe@redhat.com>
Thu, 14 Sep 2023 03:31:36 +0000 (11:31 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 4 Oct 2023 17:41:58 +0000 (10:41 -0700)
commit70916e9c8d9f1a286c99727072b22e395097909f
tree159be34fb7acc4470c0ce05516f0314c56c76069
parenta9e1a3d84e4a0ea560ed4d84c28d06dbfdffed22
crash_core: change parse_crashkernel() to support crashkernel=,high|low parsing

Now parse_crashkernel() is a real entry point for all kinds of crahskernel
parsing on any architecture.

And wrap the crahskernel=,high|low handling inside
CONFIG_ARCH_HAS_GENERIC_CRASHKERNEL_RESERVATION ifdeffery scope.

Link: https://lkml.kernel.org/r/20230914033142.676708-4-bhe@redhat.com
Signed-off-by: Baoquan He <bhe@redhat.com>
Reviewed-by: Zhen Lei <thunder.leizhen@huawei.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Chen Jiahao <chenjiahao16@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/crash_core.h
kernel/crash_core.c