mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Newer s390 kernels provide the new sysfs /sys/firmware/dump/dump_area_size attribute which specifies the exact size of machine's dump area size. Use this value if it is present but fall back to the previous and slightly improved way of computation of dump area size to support also older s390 kernels w/o the new sysfs attribute. This has the advantage that util_arch_hsa_maxsize() has no longer to be adapted with every introduction of yet another machine type in the future. Suggested-by: Heiko Carstens <hca@linux.ibm.com> Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com> Reviewed-by: Thomas Richter <tmricht@linux.ibm.com> Signed-off-by: Alexander Egorenkov <egorenar@linux.ibm.com> Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>