]> git.proxmox.com Git - mirror_ubuntu-impish-kernel.git/commit
s390/decompressor: correct BOOT_HEAP_SIZE condition
authorVasily Gorbik <gor@linux.ibm.com>
Thu, 24 Jun 2021 20:53:45 +0000 (21:53 +0100)
committerAndrea Righi <andrea.righi@canonical.com>
Mon, 28 Jun 2021 06:04:08 +0000 (08:04 +0200)
commit81ad8169675e30c2659c645b73d4afb69a7fd1f8
treedfad2bdd7d74836cac06a282b72b6db16c657b3e
parent0ab109df63bd6d4947fb941a17eabbaff6e75c4d
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>
(cherry picked from commit 54f45214522ae74dc23ad262346ce1abbf96b1ed linux-next)
BugLink: https://bugs.launchpad.net/bugs/1931725
Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
arch/s390/boot/compressed/decompressor.c