Skip to content

Commit

Permalink
[PATCH] x86-64: Don't force inlining of do_csum
Browse files Browse the repository at this point in the history
It's two big and used by two callers. Calls should be cheap enough anyways.

Signed-off-by: Andi Kleen <ak@suse.de>
  • Loading branch information
Andi Kleen authored and Andi Kleen committed Dec 7, 2006
1 parent 8c89812 commit b6bcc4b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions arch/x86_64/lib/csum-partial.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
#include <linux/module.h>
#include <asm/checksum.h>

#define __force_inline inline __attribute__((always_inline))

static inline unsigned short from32to16(unsigned a)
{
unsigned short b = a >> 16;
Expand All @@ -33,7 +31,7 @@ static inline unsigned short from32to16(unsigned a)
* Unrolling to an 128 bytes inner loop.
* Using interleaving with more registers to break the carry chains.
*/
static __force_inline unsigned do_csum(const unsigned char *buff, unsigned len)
static unsigned do_csum(const unsigned char *buff, unsigned len)
{
unsigned odd, count;
unsigned long result = 0;
Expand Down

0 comments on commit b6bcc4b

Please sign in to comment.