Blackfin arch: Faster Implementation of csum_tcpudp_nofold()
authorMichael Hennerich <michael.hennerich@analog.com>
Wed, 4 Feb 2009 08:49:45 +0000 (16:49 +0800)
committerBryan Wu <cooloney@kernel.org>
Wed, 4 Feb 2009 08:49:45 +0000 (16:49 +0800)
commitaa9c33b496ca9434f26beaa1b447a6e2e5d8ad6a
treec47851ad65934ed0a3825902673173451d098780
parent0ce5eaf8ec156926a29313de877d9d5e0a692054
Blackfin arch: Faster Implementation of csum_tcpudp_nofold()

Avoid conditional branch instructions during carry bit additions.
Special thanks to Bernd.
Simplify: Use ((len + proto) << 8) like every other __LITTLE_ENDIAN__ machine

Cc: Bernd Schmidt <bernds_cb1@t-online.de>
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
arch/blackfin/include/asm/checksum.h