summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorAbel Wu <wuyun.wu@huawei.com>2020-10-13 16:48:40 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2020-10-13 18:38:27 -0700
commitc270cf3041a5cb7c5853d45a794309e66576493a (patch)
tree53ec5da29e62574e8b50ce6bd1019c7e02964ad6 /.clang-format
parentd7cff4ded857ff7cc3e49eb39cc14df9345b9662 (diff)
downloadlwn-c270cf3041a5cb7c5853d45a794309e66576493a.tar.gz
lwn-c270cf3041a5cb7c5853d45a794309e66576493a.zip
mm/slub.c: branch optimization in free slowpath
The two conditions are mutually exclusive and gcc compiler will optimise this into if-else-like pattern. Given that the majority of free_slowpath is free_frozen, let's provide some hint to the compilers. Tests (perf bench sched messaging -g 20 -l 400000, executed 10x after reboot) are done and the summarized result: un-patched patched max. 192.316 189.851 min. 187.267 186.252 avg. 189.154 188.086 stdev. 1.37 0.99 Signed-off-by: Abel Wu <wuyun.wu@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Acked-by: Christoph Lameter <cl@linux.com> Cc: Pekka Enberg <penberg@kernel.org> Cc: David Rientjes <rientjes@google.com> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> Cc: Hewenliang <hewenliang4@huawei.com> Cc: Hu Shiyuan <hushiyuan@huawei.com> Link: http://lkml.kernel.org/r/20200813101812.1617-1-wuyun.wu@huawei.com Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions