Re: efficient copy_to_user and copy_from_user routines in Linux Kernel

From: David S. Miller (
Date: Mon Jun 24 2002 - 14:33:56 EST

   From: "Mala Anand" <>
   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
   by using the integer registers instead of the movsl instruction. For
   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
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Sun Jun 30 2002 - 22:00:08 EST