mirror of
https://github.com/opnsense/src.git
synced 2026-04-23 23:28:37 -04:00
In pmap_object_init_pt(), the pmap_invalidate_all() should be performed on
the caller-provided pmap, not the kernel_pmap. Using the kernel_pmap results in an unnecessary IPI for TLB shootdown on SMPs. Reviewed by: jake, peter
This commit is contained in:
parent
6c525ee43c
commit
90a7c7b671
2 changed files with 2 additions and 2 deletions
|
|
@ -2119,7 +2119,7 @@ retry:
|
|||
ptepa += NBPDR;
|
||||
pde++;
|
||||
}
|
||||
pmap_invalidate_all(kernel_pmap);
|
||||
pmap_invalidate_all(pmap);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2264,7 +2264,7 @@ retry:
|
|||
ptepa += NBPDR;
|
||||
ptepindex += 1;
|
||||
}
|
||||
pmap_invalidate_all(kernel_pmap);
|
||||
pmap_invalidate_all(pmap);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue