s390/hibernate: fix save and restore of vector registers
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 8 Sep 2015 11:59:08 +0000 (13:59 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 17 Sep 2015 11:43:41 +0000 (13:43 +0200)
commit88d64253785936d75323c74e7126d180e26de560
tree5bb9b1a461547433b6f0c2957a88b16787e17103
parent72714841b705a5b9bccf37ee85a62352bee3a3ef
s390/hibernate: fix save and restore of vector registers

The swsusp_arch_suspend()/swsusp_arch_resume() functions currently only
save and restore the floating point registers. If the task that started
the hibernation process is using vector registers they can get lost.
To fix this just call save_fpu_regs in swsusp_arch_suspend(), the restore
will happen automatically on return to user space.

Reported-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/swsusp.S