From: Sven Eckelmann Date: Sun, 21 Nov 2010 23:55:57 +0000 (+0100) Subject: Staging: batman-adv: Remove hashdata_choose_cb from hash X-Git-Tag: v2.6.38-rc1~423^2~221 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d5e654240dc14ded3d74aa5df6857572ba9f5e3;p=pandora-kernel.git Staging: batman-adv: Remove hashdata_choose_cb from hash Function pointers cannot be inlined by a compiler and thus always has the overhead of an call. hashdata_choose_cb's are one of the most often called function pointers and its overhead must kept relative low. As first step, every function which uses this function pointer takes it as parameter instead of storing it inside the hash abstraction structure. This not generate any performance gain right now. The called functions must also be able to be inlined by the calling functions to enable inlining of the function pointer. Reported-by: David S. Miller Signed-off-by: Sven Eckelmann Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed