s390/dump: cleanup CPU save area handling
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 29 Oct 2015 09:59:15 +0000 (10:59 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 27 Nov 2015 08:24:14 +0000 (09:24 +0100)
commit1a2c5840acf9f657c9b580d4ee12a4c9db3429cb
tree199917e7878e47e723b19788737496340ef6daef
parent1a36a39e225d3558fb3776a3d3d7736cf1ec9f60
s390/dump: cleanup CPU save area handling

Introduce save_area_alloc(), save_area_boot_cpu(), save_area_add_regs()
and save_area_add_vxrs to deal with storing the CPU state in case of a
system dump. Remove struct save_area and save_area_ext, and create a new
struct save_area as a local definition to arch/s390/kernel/crash_dump.c.
Copy each individual field from the hardware status area to the save area,
storing the minimum of required data.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/ipl.h
arch/s390/include/asm/lowcore.h
arch/s390/kernel/crash_dump.c
arch/s390/kernel/smp.c
drivers/s390/char/zcore.c