Re: bug in "raid5: measuring checksumming speed"

Mark Hahn (hahn@physics.mcmaster.ca)
Sat, 20 Oct 2001 13:42:58 -0400 (EDT)


> on my two P3 boxes linux chooses pIII_sse but pII_mmx and p5_mmx are
> reported as faster instructions:

tail of linux/include/asm-i386/xor.h:

| /* We force the use of the SSE xor block because it can write around L2.
| We may also be able to load into the L1 only depending on how the cpu
| deals with a load to a line that is being prefetched. */
| #define XOR_SELECT_TEMPLATE(FASTEST) \
| (cpu_has_xmm ? &xor_block_pIII_sse : FASTEST)

this code should probably be generalized to test for K7 feature flags, as well.

-
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/