]> 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)
commit594574b153a80c07d97ac576b9ac14493c90ad9f
tree5bb9b1a461547433b6f0c2957a88b16787e17103
parentb2943e074696dc056fa8036fc57197b75b442877
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