[PATCH 3/3] kexec: increase zImage compression ratio from 4 to 5

Wang Nan wangnan0 at huawei.com
Wed Jan 22 05:52:04 EST 2014


Old code assume the zImage compression ration is 4, it is not enough, 5 shall be
better.

Signed-off-by: Wang Nan <wangnan0 at huawei.com>
Cc: Simon Horman <horms at verge.net.au>
Cc: Dave Young <dyoung at redhat.com>
Cc: Geng Hui <hui.geng at huawei.com>
---
 kexec/arch/arm/kexec-zImage-arm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kexec/arch/arm/kexec-zImage-arm.c b/kexec/arch/arm/kexec-zImage-arm.c
index 6d6b239..6e5e12b 100644
--- a/kexec/arch/arm/kexec-zImage-arm.c
+++ b/kexec/arch/arm/kexec-zImage-arm.c
@@ -351,7 +351,7 @@ int zImage_arm_load(int argc, char **argv, const char *buf, off_t len,
 	} else {
 		/* Otherwise, assume the maximum kernel compression ratio
 		 * is 4, and just to be safe, place ramdisk after that */
-		initrd_base =  base + _ALIGN(len * 4, 4096);
+		initrd_base =  base + _ALIGN(len * 5, 4096);
 	}
 
 	if (use_atags) {
-- 
1.8.4




More information about the kexec mailing list