aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/include/asm/mem_detect.h
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 /arch/s390/include/asm/mem_detect.h
parents390/mem_detect: use SCLP info for continuous memory detection (diff)
downloadlinux-dev-54c57795e848100a2502b7a39b12b784292f4576.tar.xz
linux-dev-54c57795e848100a2502b7a39b12b784292f4576.zip
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 'arch/s390/include/asm/mem_detect.h')
-rw-r--r--arch/s390/include/asm/mem_detect.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/include/asm/mem_detect.h b/arch/s390/include/asm/mem_detect.h
index 153c3542fa8a..6114b92ab667 100644
--- a/arch/s390/include/asm/mem_detect.h
+++ b/arch/s390/include/asm/mem_detect.h
@@ -9,7 +9,7 @@ enum mem_info_source {
MEM_DETECT_SCLP_STOR_INFO,
MEM_DETECT_DIAG260,
MEM_DETECT_SCLP_READ_INFO,
- MEM_DETECT_TPROT_LOOP
+ MEM_DETECT_BIN_SEARCH
};
struct mem_detect_block {