]> git.baikalelectronics.ru Git - kernel.git/commit
s390/decompressor: correct BOOT_HEAP_SIZE condition
authorVasily Gorbik <gor@linux.ibm.com>
Tue, 15 Jun 2021 22:36:41 +0000 (00:36 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Fri, 18 Jun 2021 14:41:22 +0000 (16:41 +0200)
commit926999b0f559fe013edba12f5ec11232e5204afb
treefd4960045f081632475764e5c8c9e6193886d524
parent1ed9a0eeac5195cc67ee3ba5954e966e24f55844
s390/decompressor: correct BOOT_HEAP_SIZE condition

Currently BOOT_HEAP_SIZE is always defined as 0x400000 due to
bogus condition. Use CONFIG_KERNEL_BZIP2 instead of
CONFIG_HAVE_KERNEL_BZIP2 to correct that.

BOOT_HEAP_SIZE of 0x10000 is still good enough for every decompressor
algorithm but bzip2. Actual decompressor memory usage with allyesconfig
is the following:
gzip  0xbc28
bzip2 0x379518
xz    0x7410
lzma  0x3e6c
lzo   0
lz4   0

Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/boot/compressed/decompressor.c