aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-s390/page.h
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2008-04-30 07:38:47 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2008-04-30 07:38:48 -0400
commit17f345808563d2f425b2b15d60c4a5b00112e9eb (patch)
treee12fe48f44c5d4d50cf1e92e679bc1badea0623a /include/asm-s390/page.h
parent53492b1de46a7576170e865062ffcfc93bb5650b (diff)
[S390] Convert to SPARSEMEM & SPARSEMEM_VMEMMAP
Convert s390 to SPARSEMEM and SPARSEMEM_VMEMMAP. We do a select of SPARSEMEM_VMEMMAP since it is configurable. This is because SPARSEMEM without SPARSEMEM_VMEMMAP gives us a hell of broken include dependencies that I don't want to fix. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'include/asm-s390/page.h')
-rw-r--r--include/asm-s390/page.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/include/asm-s390/page.h b/include/asm-s390/page.h
index b01e6fc9a295..f0f4579eac13 100644
--- a/include/asm-s390/page.h
+++ b/include/asm-s390/page.h
@@ -125,26 +125,6 @@ page_get_storage_key(unsigned long addr)
125 return skey; 125 return skey;
126} 126}
127 127
128extern unsigned long max_pfn;
129
130static inline int pfn_valid(unsigned long pfn)
131{
132 unsigned long dummy;
133 int ccode;
134
135 if (pfn >= max_pfn)
136 return 0;
137
138 asm volatile(
139 " lra %0,0(%2)\n"
140 " ipm %1\n"
141 " srl %1,28\n"
142 : "=d" (dummy), "=d" (ccode)
143 : "a" (pfn << PAGE_SHIFT)
144 : "cc");
145 return !ccode;
146}
147
148#endif /* !__ASSEMBLY__ */ 128#endif /* !__ASSEMBLY__ */
149 129
150/* to align the pointer to the (next) page boundary */ 130/* to align the pointer to the (next) page boundary */