aboutsummaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorMateusz Nosek <[email protected]>2020-04-06 20:08:49 -0700
committerLinus Torvalds <[email protected]>2020-04-07 10:43:42 -0700
commit1386f7a3bfa6245a69f1fa39786be54a73889ff7 (patch)
tree90e9f94f112a2c2b5eeda15c10fe9a33b882ec53 /net/unix/sysctl_net_unix.c
parent1d90b6491014ead775146726b81a78ed993c3188 (diff)
mm/dmapool.c: micro-optimisation remove unnecessary branch
Previously there was a check if 'size' is aligned to 'align' and if not then it was aligned. This check was expensive as both branch and division are expensive instructions in most architectures. 'ALIGN' function on already aligned value will not change it, and as it is cheaper than branch + division it can be executed all the time and branch can be removed. Signed-off-by: Mateusz Nosek <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Reviewed-by: Andrew Morton <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions