diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2007-11-20 02:20:59 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 17:54:36 -0500 |
commit | 9859a79023d71dd4e56c195a345abc4112abfd02 (patch) | |
tree | 5492ce13e237b6fb9cf284d3fdfd062793dc1126 /include/net/mac80211.h | |
parent | 3ef1355dcb8551730cc71e9ef4363f5c66ccad17 (diff) |
[NET]: Compact sk_stream_mem_schedule() code
This function references sk->sk_prot->xxx for many times.
It turned out, that there's so many code in it, that gcc
cannot always optimize access to sk->sk_prot's fields.
After saving the sk->sk_prot on the stack and comparing
disassembled code, it turned out that the function became
~10 bytes shorter and made less dereferences (on i386 and
x86_64). Stack consumption didn't grow.
Besides, this patch drives most of this function into the
80 columns limit.
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Acked-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/mac80211.h')
0 files changed, 0 insertions, 0 deletions