summaryrefslogtreecommitdiffstats
path: root/include/net/scm.h
diff options
context:
space:
mode:
authorBenjamin LaHaise <benjamin.c.lahaise@intel.com>2006-03-20 21:29:05 -0800
committerDavid S. Miller <davem@davemloft.net>2006-03-20 21:29:05 -0800
commite9df7d7f584666533b1bdfcf5c60a43d64689198 (patch)
tree78faaa085edfb24784e40779864d41fd9ddeb168 /include/net/scm.h
parent231d06ae826664b83369166449144304859a62fa (diff)
downloadlinux-e9df7d7f584666533b1bdfcf5c60a43d64689198.tar.bz2
[AF_UNIX]: use shift instead of integer division
The patch below replaces a divide by 2 with a shift -- sk_sndbuf is an integer, so gcc emits an idiv, which takes 10x longer than a shift by 1. This improves af_unix bandwidth by ~6-10K/s. Also, tidy up the comment to fit in 80 columns while we're at it. Signed-off-by: Benjamin LaHaise <benjamin.c.lahaise@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/scm.h')
0 files changed, 0 insertions, 0 deletions