aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/include/asm/lowcore.h
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2009-09-22 16:58:50 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2009-09-22 16:58:45 -0400
commit2573a575304c5ce4765fc88f9d09ed4dbf8d04bf (patch)
treea639741e80e2424254767b332c53bddd0ebc42cb /arch/s390/include/asm/lowcore.h
parent3fd26a7793fb21b88ccf1e238670b2a508fcf835 (diff)
[S390] hibernate: make sure pfn_is_nosave handles lowcore pages
pfn_is_nosave doesn't return the correct value for the second lowcore page if lowcore protection is enabled. Make sure it always returns the correct value. While at it simplify the whole thing. NSS special handling is done by the tprot check like it already works for DCSS as well. So remove the extra code for NSS. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/lowcore.h')
-rw-r--r--arch/s390/include/asm/lowcore.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/s390/include/asm/lowcore.h b/arch/s390/include/asm/lowcore.h
index 8c5570366a0e..a3ff9b01bf7d 100644
--- a/arch/s390/include/asm/lowcore.h
+++ b/arch/s390/include/asm/lowcore.h
@@ -195,6 +195,8 @@ union save_area {
195#define LC_ORDER 1 195#define LC_ORDER 1
196#endif 196#endif
197 197
198#define LC_PAGES (1UL << LC_ORDER)
199
198struct _lowcore 200struct _lowcore
199{ 201{
200#ifndef __s390x__ 202#ifndef __s390x__