]> git.baikalelectronics.ru Git - kernel.git/commit
x86/int3: Inline bsearch()
authorPeter Zijlstra <peterz@infradead.org>
Thu, 20 Feb 2020 12:28:06 +0000 (13:28 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 11 Jun 2020 13:14:54 +0000 (15:14 +0200)
commit5939fd857655ca103ea9e0c95cc476f20f1e6e9b
tree27e6ce22ce10c84e95b811e18e2ec53b952fb155
parent0e9fe4aae6c39fde4aad8969d9dfe0cb2f13463f
x86/int3: Inline bsearch()

Avoid calling out to bsearch() by inlining it, for normal kernel configs
this was the last external call and poke_int3_handler() is now fully self
sufficient -- no calls to external code.

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.731774429@linutronix.de
arch/x86/kernel/alternative.c
arch/x86/kernel/traps.c