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:
alc 2003-07-08 19:40:35 +00:00
parent 36904d59bb
commit 455ee12a27
2 changed files with 2 additions and 2 deletions

View File

@ -2119,7 +2119,7 @@ pmap_object_init_pt(pmap_t pmap, vm_offset_t addr,
ptepa += NBPDR;
pde++;
}
pmap_invalidate_all(kernel_pmap);
pmap_invalidate_all(pmap);
}
}

View File

@ -2264,7 +2264,7 @@ pmap_object_init_pt(pmap_t pmap, vm_offset_t addr,
ptepa += NBPDR;
ptepindex += 1;
}
pmap_invalidate_all(kernel_pmap);
pmap_invalidate_all(pmap);
}
}