[PATCH 9/9] lzma: make lzma reentrant

2009-12-07 Thread root
The error function pointer used by lzma is global (file scope) which prevents it being used concurrently. This patch removes the global error pointer use, and instead passes it to all functions that need it. The error function pointer is still used by bzip2 and inflate. This patch moves the

[PATCH 1/9] Squashfs: move zlib decompression wrapper code into a separate file

2009-12-07 Thread root
Signed-off-by: Phillip Lougher phil...@lougher.demon.co.uk --- fs/squashfs/Makefile |2 +- fs/squashfs/block.c| 74 ++ fs/squashfs/squashfs.h |4 ++ fs/squashfs/zlib_wrapper.c | 109 4 files

[PATCH 4/9] Squashfs: add decompressor entries for lzma and lzo

2009-12-07 Thread root
Add knowledge of lzma/lzo compression formats to the decompressor framework. For now these are added as unsupported. Without these entries lzma/lzo compressed filesystems will be flagged as having unknown compression which is undesirable. Signed-off-by: Phillip Lougher

[PATCH 2/9] Squashfs: Factor out remaining zlib dependencies into separate wrapper file

2009-12-07 Thread root
Move zlib buffer init/destroy code into separate wrapper file. Also make zlib z_stream field a void * removing the need to include zlib.h for most files. Signed-off-by: Phillip Lougher phil...@lougher.demon.co.uk --- fs/squashfs/block.c |1 - fs/squashfs/cache.c |1 -

[PATCH 07/9] lzma: Make lzma available to non initramfs/initrd code

2009-12-07 Thread Phillip Lougher
Add a config option DECOMPRESS_LZMA_NEEDED which allows subsystems to specify they need the unlzma code. Normally decompress_unlzma.c is compiled with __init and unlzma is not exported to modules. Move INIT definition into separate header files for bzip2/lzma/inflate so it can be defined

[PATCH 8/9] Squashfs: select DECOMPRESS_LZMA_NEEDED when including support for lzma

2009-12-07 Thread Phillip Lougher
Signed-off-by: Phillip Lougher phil...@lougher.demon.co.uk --- fs/squashfs/Kconfig |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fs/squashfs/Kconfig b/fs/squashfs/Kconfig index 0294aa2..7ec5d7e 100644 --- a/fs/squashfs/Kconfig +++ b/fs/squashfs/Kconfig @@ -30,6 +30,7

[PATCH 3/9] Squashfs: add a decompressor framework

2009-12-07 Thread Phillip Lougher
This adds a decompressor framework which allows multiple compression algorithms to be cleanly supported. Also update zlib wrapper and other code to use the new framework. Signed-off-by: Phillip Lougher phil...@lougher.demon.co.uk --- fs/squashfs/Makefile |2 +- fs/squashfs/block.c

[PATCH 9/9] lzma: make lzma reentrant

2009-12-07 Thread Phillip Lougher
The error function pointer used by lzma is global (file scope) which prevents it being used concurrently. This patch removes the global error pointer use, and instead passes it to all functions that need it. The error function pointer is still used by bzip2 and inflate. This patch moves the

[PATCH 4/9] Squashfs: add decompressor entries for lzma and lzo

2009-12-07 Thread Phillip Lougher
Add knowledge of lzma/lzo compression formats to the decompressor framework. For now these are added as unsupported. Without these entries lzma/lzo compressed filesystems will be flagged as having unknown compression which is undesirable. Signed-off-by: Phillip Lougher

[PATCH 1/9] Squashfs: move zlib decompression wrapper code into a separate file

2009-12-07 Thread Phillip Lougher
Signed-off-by: Phillip Lougher phil...@lougher.demon.co.uk --- fs/squashfs/Makefile |2 +- fs/squashfs/block.c| 74 ++ fs/squashfs/squashfs.h |4 ++ fs/squashfs/zlib_wrapper.c | 109 4 files

[PATCH 6/9] Squashfs: add support for LZMA compressed filesystems

2009-12-07 Thread Phillip Lougher
Signed-off-by: Phillip Lougher phil...@lougher.demon.co.uk --- fs/squashfs/Kconfig|5 ++ fs/squashfs/Makefile |1 + fs/squashfs/decompressor.c |4 + fs/squashfs/lzma_wrapper.c | 151 fs/squashfs/squashfs.h |3 + 5

[PATCH 5/9] Squashfs: make decompressor init function pass superblock info

2009-12-07 Thread root
Signed-off-by: Phillip Lougher phil...@lougher.demon.co.uk --- fs/squashfs/decompressor.h |4 ++-- fs/squashfs/zlib_wrapper.c |2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/squashfs/decompressor.h b/fs/squashfs/decompressor.h index 778760c..7425f80 100644 ---

Re: [PATCH 0/9] Squashfs: Add support for LZMA compressed filesystems

2009-12-07 Thread Peter Korsgaard
root == root r...@lougher.demon.co.uk writes: root Hi, root The following patches add LZMA decompression support to Squashfs, using the root in-kernel LZMA decompression library. root The patches also add a decompression framework to Squashfs. root This allows LZMA decompression to be

[PATCH 8/9] Squashfs: select DECOMPRESS_LZMA_NEEDED when including support for lzma

2009-12-07 Thread root
Signed-off-by: Phillip Lougher phil...@lougher.demon.co.uk --- fs/squashfs/Kconfig |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fs/squashfs/Kconfig b/fs/squashfs/Kconfig index 0294aa2..7ec5d7e 100644 --- a/fs/squashfs/Kconfig +++ b/fs/squashfs/Kconfig @@ -30,6 +30,7

[PATCH 6/9] Squashfs: add support for LZMA compressed filesystems

2009-12-07 Thread root
Signed-off-by: Phillip Lougher phil...@lougher.demon.co.uk --- fs/squashfs/Kconfig|5 ++ fs/squashfs/Makefile |1 + fs/squashfs/decompressor.c |4 + fs/squashfs/lzma_wrapper.c | 151 fs/squashfs/squashfs.h |3 + 5

[PATCH 07/9] lzma: Make lzma available to non initramfs/initrd code

2009-12-07 Thread root
Add a config option DECOMPRESS_LZMA_NEEDED which allows subsystems to specify they need the unlzma code. Normally decompress_unlzma.c is compiled with __init and unlzma is not exported to modules. Move INIT definition into separate header files for bzip2/lzma/inflate so it can be defined

Re: [POWER] battery calibration parameters from sysfs

2009-12-07 Thread Mark Brown
On Sat, Dec 05, 2009 at 02:08:11PM +0100, Linus Walleij wrote: [Mark Brown] Isn't the standard thing here to handle this voltage to capacity mapping in userspace if we're just extrapolating from experimental results? That's an easy solution of course, but then the sysfs files specified

RE: [POWER] battery calibration parameters from sysfs

2009-12-07 Thread Linus Walleij
Thanks for all the great attention Mark! [Mark wrote] On Sat, Dec 05, 2009 at 02:08:11PM +0100, Linus Walleij wrote: (...) That's an easy solution of course, but then the sysfs files specified by the power subsystem, i.e. all charge_*, energy_*, capacity and time_to_* loose their meaning

Re: [POWER] battery calibration parameters from sysfs

2009-12-07 Thread Mark Brown
On Mon, Dec 07, 2009 at 03:07:15PM +0100, Linus Walleij wrote: [Mark wrote] These files should only be present if we have data for them. Userspace can't be reliant on them at present since relatively few systems seem to implement them, for example none of my laptops have time_to,

Re: [PATCH 1/9] Squashfs: move zlib decompression wrapper code into a separate file

2009-12-07 Thread Andrew Morton
On Mon, 07 Dec 2009 02:25:08 + Phillip Lougher phil...@lougher.demon.co.uk wrote: +++ b/fs/squashfs/zlib_wrapper.c @@ -0,0 +1,109 @@ +/* + * Squashfs - a compressed read only filesystem for Linux + * + * Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 + * Phillip Lougher

Re: [POWER] battery calibration parameters from sysfs

2009-12-07 Thread Brian Swetland
On Mon, Dec 7, 2009 at 8:56 AM, Mark Brown broo...@opensource.wolfsonmicro.com wrote: One of the things we're facing is Android, which has its userspace in plain Java JNI at the end of this link: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=s