Messages in this thread | | | Date | Mon, 24 Jun 2002 12:33:56 -0700 (PDT) | Subject | Re: efficient copy_to_user and copy_from_user routines in Linux Kernel | From | "David S. Miller" <> |
| |
From: "Mala Anand" <manand@us.ibm.com> Date: Mon, 24 Jun 2002 14:34:08 -0500
The 2.5.19 copy routines use the movsl instruction. We found that when the src or dst addresses are not aligned on 8 bytes, performance can be improved by using the integer registers instead of the movsl instruction. For tcpip, the src or dst addresses are often misaligned.
If the code is going to become so much larger, move the implementation out of the header file and into arch/i386/lib/foo.S
It makes no sense to inline it anymore if it is going to be implemented with so many instructions. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |