lib/checksum.c: make do_csum optional
authorArnd Bergmann <arnd@arndb.de>
Tue, 23 Jun 2009 19:37:26 +0000 (21:37 +0200)
committerArnd Bergmann <arnd@arndb.de>
Tue, 3 Nov 2009 15:06:52 +0000 (16:06 +0100)
commit20c1f641bb80fb272dec959a5caabed92e5a422e
treef86824522190b527c211ae43054e1e0a1f25568d
parentc44ba9f6684946b156335da6a6d55f0b8cf7cb72
lib/checksum.c: make do_csum optional

Mike Frysinger suggested that do_csum should be optional
so that an architecture can use the generic checksum code
but still provide an optimized fast-path for the most
critical function.

This can mean an implementation using inline assembly,
or in case of Alpha one using 64-bit arithmetic in C.

Cc: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
lib/checksum.c