ixgbe: Use out-of-line function for register reads
authorMark Rustad <mark.d.rustad@intel.com>
Tue, 18 Mar 2014 07:03:40 +0000 (07:03 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 23 Apr 2014 06:20:54 +0000 (23:20 -0700)
commitf8e2472f4fe245aff1eec86f6248270abc940e1f
tree0b554ea2ccb67b40ec3b980c1233a4fdf3559f3b
parente5776620a7b7b2aacbc60ff1cdbeca6814ec8411
ixgbe: Use out-of-line function for register reads

Register reads are slow, so don't inline them.

Size before:
   text    data     bss     dec     hex filename
 226337    8280     552  235169   396a1 ixgbe.ko

Size after:
   text    data     bss     dec     hex filename
 194578    8280     552  203410   31a92 ixgbe.ko

for about a 14% reduction in text size.

Signed-off-by: Mark Rustad <mark.d.rustad@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_common.h
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c