> This fix adds an x86_64 specific routine that 1) probes for
> X86_FEATURE_REP_GOOD
> and 2) uses an inline asm routine builton rep movsq that testing has shown is
> better than the builtin memcpy for all cases up to 4K.  The probing routine is
> now called when the qib module is loaded to enable the optimization.   When
> X86_FEATURE_REP_GOOD is not set, the routine uses the kernel's unrolled
> __memcpy
> when the length is more than 64 and the builtin memcpy otherwise.

Having every driver implement their own version of memcpy is a bad idea.

Reply via email to