s390/kexec: fix update of os_info crash kernel size
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Tue, 31 May 2016 07:13:59 +0000 (09:13 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 13 Jun 2016 13:58:19 +0000 (15:58 +0200)
commit2d0af2247906cf17cd641cdb16444a8f291cd4f4
tree472403b104b87988442dd65ea60e26139d7b5f7e
parent0ccb32c983e0fe79d408e50ec1386aaf78c9a7ed
s390/kexec: fix update of os_info crash kernel size

Implement an s390 version of the weak crash_free_reserved_phys_range
function. This allows us to update the size of the reserved crash
kernel memory if it will be resized.

This was previously done with a call to crash_unmap_reserved_pages
from crash_shrink_memory which was removed with ("s390/kexec:
consolidate crash_map/unmap_reserved_pages() and
arch_kexec_protect(unprotect)_crashkres()")

Fixes: 7a0058ec7860 ("s390/kexec: consolidate crash_map/unmap_reserved_pages() and arch_kexec_protect(unprotect)_crashkres()")
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/machine_kexec.c