提交 b712bd16 编写于 作者: Z Zhen Lei 提交者: Zheng Zengkai

arm64: kdump: Update the name of crashk_low_res

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I545H8
CVE: NA

-------------------------------------------------------------------------

To be consistent with the style of other ARCHs such as x86, the kexec
commit b5a34a20984c ("arm64: support more than one crash kernel regions")
requires all crash regions to be named "Crash kernel". Update the name of
crashk_low_res, so that we can directly use the latest kexec tool without
having to maintain a private version.
Signed-off-by: NZhen Lei <thunder.leizhen@huawei.com>
Reviewed-by: NKefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 af36aed7
...@@ -274,16 +274,9 @@ static void __init request_standard_resources(void) ...@@ -274,16 +274,9 @@ static void __init request_standard_resources(void)
request_memmap_resources(res); request_memmap_resources(res);
#ifdef CONFIG_KEXEC_CORE #ifdef CONFIG_KEXEC_CORE
/* /* Userspace will find "Crash kernel" region in /proc/iomem. */
* Userspace will find "Crash kernel" or "Crash kernel (low)"
* region in /proc/iomem.
* In order to distinct from the high region and make no effect
* to the use of existing kexec-tools, rename the low region as
* "Crash kernel (low)".
*/
if (crashk_low_res.end && crashk_low_res.start >= res->start && if (crashk_low_res.end && crashk_low_res.start >= res->start &&
crashk_low_res.end <= res->end) { crashk_low_res.end <= res->end) {
crashk_low_res.name = "Crash kernel (low)";
request_resource(res, &crashk_low_res); request_resource(res, &crashk_low_res);
} }
if (crashk_res.end && crashk_res.start >= res->start && if (crashk_res.end && crashk_res.start >= res->start &&
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册