]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
staging: zsmalloc: remove x86 dependency
authorSeth Jennings <sjenning@linux.vnet.ibm.com>
Mon, 2 Jul 2012 21:15:49 +0000 (16:15 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Jul 2012 18:34:59 +0000 (11:34 -0700)
commit5f601902c61e6cda627ec71c10609021067ed0fa
tree80dff109d1e2047501d2ae7c60dea85a2acb998c
parentc666e636ac9915f33fe175c75bc01ab994e5afa6
staging: zsmalloc: remove x86 dependency

This patch replaces the page table assisted object mapping
method, which has x86 dependencies, with a arch-independent
method that does a simple copy into a temporary per-cpu
buffer.

While a copy seems like it would be worse than mapping the pages,
tests demonstrate the copying is always faster and, in the case of
running inside a KVM guest, roughly 4x faster.

Signed-off-by: Seth Jennings <sjenning@linux.vnet.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/zsmalloc/Kconfig
drivers/staging/zsmalloc/zsmalloc-main.c
drivers/staging/zsmalloc/zsmalloc_int.h