1
linux/arch/powerpc
Richard Purdie 4f3865fb57 [PATCH] zlib_inflate: Upgrade library code to a recent version
Upgrade the zlib_inflate implementation in the kernel from a patched
version 1.1.3/4 to a patched 1.2.3.

The code in the kernel is about seven years old and I noticed that the
external zlib library's inflate performance was significantly faster (~50%)
than the code in the kernel on ARM (and faster again on x86_32).

For comparison the newer deflate code is 20% slower on ARM and 50% slower
on x86_32 but gives an approx 1% compression ratio improvement.  I don't
consider this to be an improvement for kernel use so have no plans to
change the zlib_deflate code.

Various changes have been made to the zlib code in the kernel, the most
significant being the extra functions/flush option used by ppp_deflate.
This update reimplements the features PPP needs to ensure it continues to
work.

This code has been tested on ARM under both JFFS2 (with zlib compression
enabled) and ppp_deflate and on x86_32.  JFFS2 sees an approx.  10% real
world file read speed improvement.

This patch also removes ZLIB_VERSION as it no longer has a correct value.
We don't need version checks anyway as the kernel's module handling will
take care of that for us.  This removal is also more in keeping with the
zlib author's wishes (http://www.zlib.net/zlib_faq.html#faq24) and I've
added something to the zlib.h header to note its a modified version.

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Acked-by: Joern Engel <joern@wh.fh-wedel.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-06-22 15:05:58 -07:00
..
boot [PATCH] zlib_inflate: Upgrade library code to a recent version 2006-06-22 15:05:58 -07:00
configs [PATCH] powerpc: update cell_defconfig 2006-04-29 15:11:30 +10:00
kernel [PATCH] powerpc: Fix cell blade detection 2006-06-09 13:06:00 +10:00
lib [PATCH] powerpc: fix various sparse warnings 2006-03-27 14:48:08 +11:00
math-emu powerpc: move math-emu over to arch/powerpc 2006-03-27 23:43:27 -06:00
mm [PATCH] powerpc: Fix 64k pages on non-partitioned machines 2006-06-17 10:56:24 -07:00
oprofile [PATCH] powerpc: Remove oprofile spinlock backtrace code 2006-03-29 13:44:16 +11:00
platforms [PATCH] powerpc: Fix cell blade detection 2006-06-09 13:06:00 +10:00
sysdev [PATCH] USB: allow multiple types of EHCI controllers to be built as modules 2006-06-21 15:04:09 -07:00
xmon
Kconfig Merge git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc-merge 2006-04-18 10:34:24 -07:00
Kconfig.debug powerpc: remove OCP references 2006-03-27 23:48:37 -06:00
Makefile [PATCH] powerpc32: Set cpu explicitly in kernel compiles 2006-04-13 09:38:33 -07:00