]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit26b95f6869079e41904ae45f41c543b4bb88f3d7
tree5bb9b1a461547433b6f0c2957a88b16787e17103
parent2e2e1438f6f483fcbafc92c3d5009001b810a98c
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