summaryrefslogtreecommitdiff
path: root/drivers/s390
diff options
context:
space:
mode:
authorVasily Gorbik <gor@linux.ibm.com>2018-04-11 19:15:24 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2018-10-09 11:21:12 +0200
commit54c57795e848100a2502b7a39b12b784292f4576 (patch)
treeae93ff66373017b80bbeecd2bc74aa5e04746246 /drivers/s390
parentcd45c995610420755c5fe0d09afee3106c586e26 (diff)
s390/mem_detect: replace tprot loop with binary search
In a situation when other memory detection methods are not available (no SCLP and no z/VM diag260), continuous online memory is assumed. Replacing tprot loop with faster binary search, as only online memory end has to be found. Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com> Reviewed-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390')
-rw-r--r--drivers/s390/char/sclp_early_core.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/s390/char/sclp_early_core.c b/drivers/s390/char/sclp_early_core.c
index 0df08dcb9fe8..acfe09313852 100644
--- a/drivers/s390/char/sclp_early_core.c
+++ b/drivers/s390/char/sclp_early_core.c
@@ -272,7 +272,7 @@ int __init sclp_early_get_info(struct read_info_sccb *info)
return 0;
}
-int __init sclp_early_get_meminfo(unsigned long *mem, unsigned long *rzm)
+int __init sclp_early_get_memsize(unsigned long *mem)
{
unsigned long rnmax;
unsigned long rnsize;
@@ -285,7 +285,6 @@ int __init sclp_early_get_meminfo(unsigned long *mem, unsigned long *rzm)
rnsize = sccb->rnsize ? sccb->rnsize : sccb->rnsize2;
rnsize <<= 20;
*mem = rnsize * rnmax;
- *rzm = rnsize;
return 0;
}