The branch stable/13 has been updated by markj:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=291166ab493aed7fdc08dc43dc91be739f68c5e4

commit 291166ab493aed7fdc08dc43dc91be739f68c5e4
Author:     Mark Johnston <[email protected]>
AuthorDate: 2021-11-15 17:40:00 +0000
Commit:     Mark Johnston <[email protected]>
CommitDate: 2021-11-22 13:44:27 +0000

    amd64: Annotate an unlikely condition in smp_targeted_tlb_shootdown()
    
    Reviewed by:    alc, kib
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit 42c2cd1ffbdfa706764362eca1b7bf5eeeee2aef)
---
 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 cf8408c2afb0..cbc4b33841ba 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"));

Reply via email to