From: Alexander Duyck Date: Fri, 6 Mar 2015 03:34:14 +0000 (+0000) Subject: igb: Make arrays on stack static const to avoid reallocation X-Git-Tag: omap-for-v4.2/o2_dc~131^2~322^2~2 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b23c0cc5e8b7c31f831c03b74f8e79c958c41d1e;p=pandora-kernel.git igb: Make arrays on stack static const to avoid reallocation While addressing the pin problem I noticed that all of the pin register values where having to be pushed onto the stack each time the function was called. To avoid that I am making them static const so that they should only need to be allocated once and we can avoid all the instructions to get them onto the stack.. size before: text data bss dec hex filename 161477 10512 8 171997 29fdd drivers/net/ethernet/intel/igb/igb.ko size after: text data bss dec hex filename 161205 10512 8 171725 29ecd drivers/net/ethernet/intel/igb/igb.ko Signed-off-by: Alexander Duyck Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher --- Reading git-diff-tree failed