]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
kexec_file: kexec_walk_memblock() only walks a dedicated region at kdump
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Thu, 15 Nov 2018 05:52:44 +0000 (14:52 +0900)
committerWill Deacon <will.deacon@arm.com>
Thu, 6 Dec 2018 14:38:50 +0000 (14:38 +0000)
commit497e1858647a0b859076dc96300527375977d76a
tree6d4862bac0465c42164091c7ba13c5f91668b3ec
parent735c2f90e333b3d0adee52a8e7e855a0c0eca284
kexec_file: kexec_walk_memblock() only walks a dedicated region at kdump

In kdump case, there exists only one dedicated memblock region as usable
memory (crashk_res). With this patch, kexec_walk_memblock() runs a given
callback function on this region.

Cosmetic change: 0 to MEMBLOCK_NONE at for_each_free_mem_range*()

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Acked-by: Dave Young <dyoung@redhat.com>
Cc: Vivek Goyal <vgoyal@redhat.com>
Cc: Baoquan He <bhe@redhat.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
kernel/kexec_file.c