]> git.baikalelectronics.ru Git - kernel.git/commit
[S390] hibernation: fix lowcore handling
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Fri, 24 Jul 2009 10:39:49 +0000 (12:39 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 24 Jul 2009 10:41:00 +0000 (12:41 +0200)
commit56096379b942c856b2c77980f7e7f4a8cce2665d
treec1e9fdd5f374f01c45da82ec5d972626b7c7bd80
parent8cb0e08ea6a50db8f60386cef80c176481efb6c2
[S390] hibernation: fix lowcore handling

Our swsusp_arch_suspend() backend implementation disables prefixing
by setting the contents of the prefix register to 0.
However afterwards common code functions are called which might
access percpu data structures.
Since the lowcore contains e.g. the percpu base pointer this isn't
a good idea. So fix this by copying the hibernating cpu's lowcore to
absolute address zero.

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