diff options
author | Krzysztof Mazur <krzysiek@podlesie.net> | 2012-11-06 17:17:02 -0500 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-11-30 07:23:19 -0500 |
commit | 397ff16dce53888ec693b3718640be2560204751 (patch) | |
tree | d846278a477a9a7fb7b5f428ea9e76327a681b15 | |
parent | 071d93931a75dc1f82f0baa9959613af81c5a032 (diff) |
pppoatm: do not inline pppoatm_may_send()
The pppoatm_may_send() is quite heavy and it's called three times
in pppoatm_send() and inlining costs more than 200 bytes of code
(more than 10% of total pppoatm driver code size).
add/remove: 1/0 grow/shrink: 0/1 up/down: 132/-367 (-235)
function old new delta
pppoatm_may_send - 132 +132
pppoatm_send 900 533 -367
Signed-off-by: Krzysztof Mazur <krzysiek@podlesie.net>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
-rw-r--r-- | net/atm/pppoatm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/atm/pppoatm.c b/net/atm/pppoatm.c index aeb726cffc8c..3dce84af5dbe 100644 --- a/net/atm/pppoatm.c +++ b/net/atm/pppoatm.c | |||
@@ -214,7 +214,7 @@ error: | |||
214 | ppp_input_error(&pvcc->chan, 0); | 214 | ppp_input_error(&pvcc->chan, 0); |
215 | } | 215 | } |
216 | 216 | ||
217 | static inline int pppoatm_may_send(struct pppoatm_vcc *pvcc, int size) | 217 | static int pppoatm_may_send(struct pppoatm_vcc *pvcc, int size) |
218 | { | 218 | { |
219 | /* | 219 | /* |
220 | * It's not clear that we need to bother with using atm_may_send() | 220 | * It's not clear that we need to bother with using atm_may_send() |