The patch titled i386: optimize memset of 6 and 8 bytes has been added to the -mm tree. Its filename is i386-optimize-memset-of-6-and-8-bytes.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: i386: optimize memset of 6 and 8 bytes From: Stephen Hemminger <shemminger@xxxxxxxxxxxxxxxxxxxx> Tne network code does memset for 6 and 8 byte values, that can easily be optimized into simple assignments without string instructions. Signed-off-by: Stephen Hemminger <shemminger@xxxxxxxxxxxxxxxxxxxx> Cc: "David S. Miller" <davem@xxxxxxxxxxxxx> Cc: Andi Kleen <ak@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/asm-i386/string.h | 8 ++++++++ 1 files changed, 8 insertions(+) diff -puN include/asm-i386/string.h~i386-optimize-memset-of-6-and-8-bytes include/asm-i386/string.h --- a/include/asm-i386/string.h~i386-optimize-memset-of-6-and-8-bytes +++ a/include/asm-i386/string.h @@ -228,6 +228,14 @@ static __always_inline void * __constant case 4: *(unsigned long *)s = pattern; return s; + case 6: + *(unsigned long *)s = pattern; + *(2+(unsigned short *)s) = pattern; + return s; + case 8: + *(unsigned long *)s = pattern; + *(1+(unsigned long *)s) = pattern; + return s; } #define COMMON(x) \ __asm__ __volatile__( \ _ Patches currently in -mm which might be from shemminger@xxxxxxxxxxxxxxxxxxxx are origin.patch pci-x-pci-express-read-control-interfaces-mthca.patch pci-x-pci-express-read-control-interfaces-myrinet.patch pci-x-pci-express-read-control-interfaces-e1000.patch git-net.patch i386-optimize-memset-of-6-and-8-bytes.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html