提交 b6bcc4bb 编写于 作者: A Andi Kleen 提交者: Andi Kleen

[PATCH] x86-64: Don't force inlining of do_csum

It's two big and used by two callers. Calls should be cheap enough anyways.
Signed-off-by: NAndi Kleen <ak@suse.de>
上级 8c898126
......@@ -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;
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册