mm: make wait_on_page_writeback() wait for multiple pending writebacks
[linux/fpc-iii.git] / arch / s390 / include / asm / sections.h
blob0c2151451ba593be330d1252f8609d9c53cb762b
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _S390_SECTIONS_H
3 #define _S390_SECTIONS_H
5 #define arch_is_kernel_initmem_freed arch_is_kernel_initmem_freed
7 #include <asm-generic/sections.h>
9 extern bool initmem_freed;
11 static inline int arch_is_kernel_initmem_freed(unsigned long addr)
13 if (!initmem_freed)
14 return 0;
15 return addr >= (unsigned long)__init_begin &&
16 addr < (unsigned long)__init_end;
20 * .boot.data section contains variables "shared" between the decompressor and
21 * the decompressed kernel. The decompressor will store values in them, and
22 * copy over to the decompressed image before starting it.
24 * Each variable end up in its own intermediate section .boot.data.<var name>,
25 * those sections are later sorted by alignment + name and merged together into
26 * final .boot.data section, which should be identical in the decompressor and
27 * the decompressed kernel (that is checked during the build).
29 #define __bootdata(var) __section(".boot.data." #var) var
32 * .boot.preserved.data is similar to .boot.data, but it is not part of the
33 * .init section and thus will be preserved for later use in the decompressed
34 * kernel.
36 #define __bootdata_preserved(var) __section(".boot.preserved.data." #var) var
38 extern unsigned long __sdma, __edma;
39 extern unsigned long __stext_dma, __etext_dma;
41 #endif