diff options
Diffstat (limited to 'include/asm-s390/page.h')
-rw-r--r-- | include/asm-s390/page.h | 20 |
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 | ||
128 | extern unsigned long max_pfn; | ||
129 | |||
130 | static 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 */ |