From 42c2cd1ffbdfa706764362eca1b7bf5eeeee2aef Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Mon, 15 Nov 2021 12:40:00 -0500 Subject: [PATCH] amd64: Annotate an unlikely condition in smp_targeted_tlb_shootdown() Reviewed by: alc, kib MFC after: 1 week Sponsored by: The FreeBSD Foundation --- sys/amd64/amd64/mp_machdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/amd64/amd64/mp_machdep.c b/sys/amd64/amd64/mp_machdep.c index e954e8cebbb..fb8c2af271e 100644 --- a/sys/amd64/amd64/mp_machdep.c +++ b/sys/amd64/amd64/mp_machdep.c @@ -625,7 +625,7 @@ smp_targeted_tlb_shootdown(cpuset_t mask, pmap_t pmap, vm_offset_t addr1, * It is not necessary to signal other CPUs while booting or * when in the debugger. */ - if (kdb_active || KERNEL_PANICKED() || !smp_started) + if (__predict_false(kdb_active || KERNEL_PANICKED() || !smp_started)) goto local_cb; KASSERT(curthread->td_pinned > 0, ("curthread not pinned"));