HomeFreeBSD

amd64: Initialize kernel_pmap's active CPU set to all_cpus

Description

amd64: Initialize kernel_pmap's active CPU set to all_cpus

This is in preference to simply filling the cpuset, and allows the
conditional in pmap_invalidate_cpu_mask() to be elided.

Also export pmap_invalidate_cpu_mask() outside of pmap.c for use in a
subsequent commit.

Suggested by: kib
Reviewed by: alc, kib
Tested by: pho
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D32792

Details

Provenance
markjAuthored on Nov 15 2021, 5:41 PM
Reviewer
alc
Differential Revision
D32792: amd64: Reduce the amount of cpuset copying done for TLB shootdowns
Parents
rG42c2cd1ffbdf: amd64: Annotate an unlikely condition in smp_targeted_tlb_shootdown()
Branches
Unknown
Tags
Unknown