]> git.baikalelectronics.ru Git - kernel.git/commit
s390/sclp: use memblock for early read cpu info
authorSumanth Korikkar <sumanthk@linux.ibm.com>
Sun, 8 Nov 2020 04:55:51 +0000 (22:55 -0600)
committerHeiko Carstens <hca@linux.ibm.com>
Wed, 18 Nov 2020 11:16:02 +0000 (12:16 +0100)
commit834bec35478faab95e59b65e58928c1e7940a220
tree3f987b8902bb7f210f847bb3b4d95e8c62a4b1c4
parent24eefa766a7e79b089a472426b4f73d65ae0efd7
s390/sclp: use memblock for early read cpu info

sclp early read cpu info is used to detect the number of configured
cpus, which is utilized by smp_detect_cpus() in early startup.

* For read cpu info, the sccb block should be below 2gb.
* smp_detect_cpus() utilizes read cpu info early, but after memblock
  initialization. Thus use memblock_allow_low() instead.
* Avoid copy of sclp_core_info structure.
* sclp_early_init_core_info(), sclp_early_core_info and
  sclp_early_core_info_valid initdata are no longer required.
* smp_get_core_info() is called only once during early stage.  Hence for
  early sclp_get_core_info(), directly call read cpu command. No need to
  maintain sclp_early_core_info_valid.

Signed-off-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
Reviewed-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
drivers/s390/char/sclp_early.c