diff options
author | Phillip Lougher <phillip@squashfs.org.uk> | 2013-11-17 21:31:36 -0500 |
---|---|---|
committer | Phillip Lougher <phillip@squashfs.org.uk> | 2013-11-19 22:58:03 -0500 |
commit | d208383d640727b70cd6689bc17e67e9b5ebf4ff (patch) | |
tree | 03a6146c22473beb13e2ebda605d6a332ddb758b /fs/squashfs/Makefile | |
parent | cd59c2ec5f37a2bc1315c9324aab6c21d43ffa1a (diff) |
Squashfs: add multi-threaded decompression using percpu variable
Add a multi-threaded decompression implementation which uses
percpu variables.
Using percpu variables has advantages and disadvantages over
implementations which do not use percpu variables.
Advantages:
* the nature of percpu variables ensures decompression is
load-balanced across the multiple cores.
* simplicity.
Disadvantages: it limits decompression to one thread per core.
Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
Diffstat (limited to 'fs/squashfs/Makefile')
-rw-r--r-- | fs/squashfs/Makefile | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/fs/squashfs/Makefile b/fs/squashfs/Makefile index dfebc3b12d61..5833b96ee69c 100644 --- a/fs/squashfs/Makefile +++ b/fs/squashfs/Makefile | |||
@@ -5,14 +5,10 @@ | |||
5 | obj-$(CONFIG_SQUASHFS) += squashfs.o | 5 | obj-$(CONFIG_SQUASHFS) += squashfs.o |
6 | squashfs-y += block.o cache.o dir.o export.o file.o fragment.o id.o inode.o | 6 | squashfs-y += block.o cache.o dir.o export.o file.o fragment.o id.o inode.o |
7 | squashfs-y += namei.o super.o symlink.o decompressor.o | 7 | squashfs-y += namei.o super.o symlink.o decompressor.o |
8 | 8 | squashfs-$(CONFIG_SQUASHFS_DECOMP_SINGLE) += decompressor_single.o | |
9 | squashfs-$(CONFIG_SQUASHFS_DECOMP_MULTI) += decompressor_multi.o | ||
10 | squashfs-$(CONFIG_SQUASHFS_DECOMP_MULTI_PERCPU) += decompressor_multi_percpu.o | ||
9 | squashfs-$(CONFIG_SQUASHFS_XATTR) += xattr.o xattr_id.o | 11 | squashfs-$(CONFIG_SQUASHFS_XATTR) += xattr.o xattr_id.o |
10 | squashfs-$(CONFIG_SQUASHFS_LZO) += lzo_wrapper.o | 12 | squashfs-$(CONFIG_SQUASHFS_LZO) += lzo_wrapper.o |
11 | squashfs-$(CONFIG_SQUASHFS_XZ) += xz_wrapper.o | 13 | squashfs-$(CONFIG_SQUASHFS_XZ) += xz_wrapper.o |
12 | squashfs-$(CONFIG_SQUASHFS_ZLIB) += zlib_wrapper.o | 14 | squashfs-$(CONFIG_SQUASHFS_ZLIB) += zlib_wrapper.o |
13 | |||
14 | ifdef CONFIG_SQUASHFS_MULTI_DECOMPRESSOR | ||
15 | squashfs-y += decompressor_multi.o | ||
16 | else | ||
17 | squashfs-y += decompressor_single.o | ||
18 | endif | ||