• Zhao Yakui's avatar
    x86, setup: Use string copy operation to optimze copy in kernel compression · 68f4d5a0
    Zhao Yakui authored
    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: default avatarZhao Yakui <yakui.zhao@intel.com>
    LKML-Reference: <1286502453-7043-1-git-send-email-yakui.zhao@intel.com>
    Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
    68f4d5a0
misc.c 8.71 KB