powerpc: put csum_tcpudp_magic inline
authorLEROY Christophe <christophe.leroy@c-s.fr>
Tue, 19 May 2015 15:18:55 +0000 (17:18 +0200)
committerScott Wood <scottwood@freescale.com>
Sat, 8 Aug 2015 03:59:19 +0000 (22:59 -0500)
commit92c985f1d76c228abe202cb3004f03c9b45860d1
tree804abef3839a59c6a2ceae1f9d29702944189b03
parent44d5401425db90dc46a0ca000bdc41429768d351
powerpc: put csum_tcpudp_magic inline

csum_tcpudp_magic() is only a few instructions, and does modify
really few registers. So it is not worth having it as a separate
function and suffer function branching and saving of volatile
registers.

This patch makes it inline by use of the already existing
csum_tcpudp_nofold() function.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Scott Wood <scottwood@freescale.com>
arch/powerpc/include/asm/checksum.h
arch/powerpc/lib/checksum_32.S
arch/powerpc/lib/checksum_64.S