hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/sh/kernel/machine_kexec.c
....@@ -1,12 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0
12 /*
23 * machine_kexec.c - handle transition of Linux booting another kernel
34 * Copyright (C) 2002-2003 Eric Biederman <ebiederm@xmission.com>
45 *
56 * GameCube/ppc32 port Copyright (C) 2004 Albert Herranz
67 * LANDISK/sh4 supported by kogiidena
7
- *
8
- * This source code is licensed under the GNU General Public License,
9
- * Version 2. See the file COPYING for more details.
108 */
119 #include <linux/mm.h>
1210 #include <linux/kexec.h>
....@@ -16,8 +14,6 @@
1614 #include <linux/ftrace.h>
1715 #include <linux/suspend.h>
1816 #include <linux/memblock.h>
19
-#include <asm/pgtable.h>
20
-#include <asm/pgalloc.h>
2117 #include <asm/mmu_context.h>
2218 #include <asm/io.h>
2319 #include <asm/cacheflush.h>
....@@ -170,7 +166,8 @@
170166 crash_size = PAGE_ALIGN(resource_size(&crashk_res));
171167 if (!crashk_res.start) {
172168 unsigned long max = memblock_end_of_DRAM() - memory_limit;
173
- crashk_res.start = __memblock_alloc_base(crash_size, PAGE_SIZE, max);
169
+ crashk_res.start = memblock_phys_alloc_range(crash_size,
170
+ PAGE_SIZE, 0, max);
174171 if (!crashk_res.start) {
175172 pr_err("crashkernel allocation failed\n");
176173 goto disable;