]> git.baikalelectronics.ru Git - kernel.git/commit
lib/bsearch: Provide __always_inline variant
authorPeter Zijlstra <peterz@infradead.org>
Wed, 19 Feb 2020 17:25:09 +0000 (18:25 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 11 Jun 2020 13:14:53 +0000 (15:14 +0200)
commit0e9fe4aae6c39fde4aad8969d9dfe0cb2f13463f
tree4e63ec64b11079ba25d827122b7e25b97423a3b1
parentf1bf0c53168a15293b039d94e2d87a7e013d7507
lib/bsearch: Provide __always_inline variant

For code that needs the ultimate performance (it can inline the @cmp
function too) or simply needs to avoid calling external functions for
whatever reason, provide an __always_inline variant of bsearch().

[ tglx: Renamed to __inline_bsearch() as suggested by Andy ]

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Alexandre Chartre <alexandre.chartre@oracle.com>
Acked-by: Andy Lutomirski <luto@kernel.org>
Link: https://lkml.kernel.org/r/20200505135313.624443814@linutronix.de
include/linux/bsearch.h
lib/bsearch.c