diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-s390/page.h | 11 | ||||
| -rw-r--r-- | include/asm-s390/system.h | 6 |
2 files changed, 17 insertions, 0 deletions
diff --git a/include/asm-s390/page.h b/include/asm-s390/page.h index f0f4579eac13..12fd9c4f0f15 100644 --- a/include/asm-s390/page.h +++ b/include/asm-s390/page.h | |||
| @@ -125,6 +125,17 @@ page_get_storage_key(unsigned long addr) | |||
| 125 | return skey; | 125 | return skey; |
| 126 | } | 126 | } |
| 127 | 127 | ||
| 128 | #ifdef CONFIG_PAGE_STATES | ||
| 129 | |||
| 130 | struct page; | ||
| 131 | void arch_free_page(struct page *page, int order); | ||
| 132 | void arch_alloc_page(struct page *page, int order); | ||
| 133 | |||
| 134 | #define HAVE_ARCH_FREE_PAGE | ||
| 135 | #define HAVE_ARCH_ALLOC_PAGE | ||
| 136 | |||
| 137 | #endif | ||
| 138 | |||
| 128 | #endif /* !__ASSEMBLY__ */ | 139 | #endif /* !__ASSEMBLY__ */ |
| 129 | 140 | ||
| 130 | /* to align the pointer to the (next) page boundary */ | 141 | /* to align the pointer to the (next) page boundary */ |
diff --git a/include/asm-s390/system.h b/include/asm-s390/system.h index c819ae25a842..e0d4500d5f95 100644 --- a/include/asm-s390/system.h +++ b/include/asm-s390/system.h | |||
| @@ -116,6 +116,12 @@ extern void pfault_fini(void); | |||
| 116 | #define pfault_fini() do { } while (0) | 116 | #define pfault_fini() do { } while (0) |
| 117 | #endif /* CONFIG_PFAULT */ | 117 | #endif /* CONFIG_PFAULT */ |
| 118 | 118 | ||
| 119 | #ifdef CONFIG_PAGE_STATES | ||
| 120 | extern void cmma_init(void); | ||
| 121 | #else | ||
| 122 | static inline void cmma_init(void) { } | ||
| 123 | #endif | ||
| 124 | |||
| 119 | #define finish_arch_switch(prev) do { \ | 125 | #define finish_arch_switch(prev) do { \ |
| 120 | set_fs(current->thread.mm_segment); \ | 126 | set_fs(current->thread.mm_segment); \ |
| 121 | account_vtime(prev); \ | 127 | account_vtime(prev); \ |
