diff options
author | Vasily Gorbik <gor@linux.ibm.com> | 2023-01-28 23:55:04 +0100 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2023-02-06 11:13:54 +0100 |
commit | bf64f0517e5d0d8f3248143fc49535c1d1594b4f (patch) | |
tree | ccfc742dbf1f7d39fd3dbc308bcae23f938040ed /arch/s390/boot/boot.h | |
parent | s390/boot: fix mem_detect extended area allocation (diff) | |
download | linux-bf64f0517e5d0d8f3248143fc49535c1d1594b4f.tar.xz linux-bf64f0517e5d0d8f3248143fc49535c1d1594b4f.zip |
s390/mem_detect: handle online memory limit just once
Introduce mem_detect_truncate() to cut any online memory ranges above
established identity mapping size, so that mem_detect users wouldn't
have to do it over and over again.
Suggested-by: Alexander Gordeev <agordeev@linux.ibm.com>
Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/s390/boot/boot.h')
-rw-r--r-- | arch/s390/boot/boot.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/s390/boot/boot.h b/arch/s390/boot/boot.h index 939d27da8fbd..e91bbb004efb 100644 --- a/arch/s390/boot/boot.h +++ b/arch/s390/boot/boot.h @@ -34,6 +34,7 @@ struct vmlinux_info { void startup_kernel(void); unsigned long detect_memory(unsigned long *safe_addr); +void mem_detect_truncate(unsigned long limit); bool is_ipl_block_dump(void); void store_ipl_parmblock(void); unsigned long read_ipl_report(unsigned long safe_addr); @@ -44,7 +45,7 @@ void print_missing_facilities(void); void sclp_early_setup_buffer(void); void print_pgm_check_info(void); unsigned long get_random_base(unsigned long safe_addr); -void setup_vmem(unsigned long ident_map_size, unsigned long asce_limit); +void setup_vmem(unsigned long asce_limit); void __printf(1, 2) decompressor_printk(const char *fmt, ...); void error(char *m); |