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
7e662706e8
commit
3d2e5159d9
@ -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…
x
Reference in New Issue
Block a user