diff options
author | Zhao Yakui <yakui.zhao@intel.com> | 2010-10-08 09:47:33 +0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2010-10-07 21:23:09 -0700 |
commit | 68f4d5a00adaab33b136fce2c72d5c377b39b0b0 (patch) | |
tree | dfd0404f760ca8ab117117e4388885255b47013b /drivers/net/cxgb3/adapter.h | |
parent | cb655d0f3d57c23db51b981648e452988c0223f9 (diff) | |
download | blackbird-op-linux-68f4d5a00adaab33b136fce2c72d5c377b39b0b0.tar.gz blackbird-op-linux-68f4d5a00adaab33b136fce2c72d5c377b39b0b0.zip |
x86, setup: Use string copy operation to optimze copy in kernel compression
The kernel decompression code parses the ELF header and then copies
the segment to the corresponding destination. Currently it uses slow
byte-copy code. This patch makes it use the string copy operations
instead.
In the test the copy performance can be improved very significantly after using
the string copy operation mechanism.
1. The copy time can be reduced from 150ms to 20ms on one Atom machine
2. The copy time can be reduced about 80% on another machine
The time is reduced from 7ms to 1.5ms when using 32-bit kernel.
The time is reduced from 10ms to 2ms when using 64-bit kernel.
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
LKML-Reference: <1286502453-7043-1-git-send-email-yakui.zhao@intel.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'drivers/net/cxgb3/adapter.h')
0 files changed, 0 insertions, 0 deletions