]> git.baikalelectronics.ru Git - kernel.git/commit
s390/mem_detect: replace tprot loop with binary search
authorVasily Gorbik <gor@linux.ibm.com>
Wed, 11 Apr 2018 17:15:24 +0000 (19:15 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 9 Oct 2018 09:21:12 +0000 (11:21 +0200)
commitd921a7dfc31a23fd83b1638a560f0e1418a59678
treeae93ff66373017b80bbeecd2bc74aa5e04746246
parentd923b020e97f269ebde80d15380eee83a1b2ec48
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>
arch/s390/boot/mem_detect.c
arch/s390/include/asm/mem_detect.h
arch/s390/include/asm/sclp.h
drivers/s390/char/sclp_early_core.c