summaryrefslogtreecommitdiffstats
path: root/drivers/firmware/ti_sci.h
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2018-04-06 01:20:40 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2018-04-06 06:36:23 +0200
commitd5f866550df237861f9d59ca0206434b0dea9701 (patch)
tree5a410c065c5b77affe3cc98b7e103cc675a15c1b /drivers/firmware/ti_sci.h
parentslab: make kmem_cache_create() work with 32-bit sizes (diff)
downloadlinux-d5f866550df237861f9d59ca0206434b0dea9701.tar.xz
linux-d5f866550df237861f9d59ca0206434b0dea9701.zip
slab: make size_index[] array u8
All those small numbers are reverse indexes into kmalloc caches array and can't be negative. On x86_64 "unsigned int = fls()" can drop CDQE instruction: add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-2 (-2) Function old new delta kmalloc_slab 101 99 -2 Link: http://lkml.kernel.org/r/20180305200730.15812-7-adobriyan@gmail.com Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> 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> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/firmware/ti_sci.h')
0 files changed, 0 insertions, 0 deletions