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:
Alan Cox 2003-07-08 19:40:35 +00:00
parent 6c525ee43c
commit 90a7c7b671
2 changed files with 2 additions and 2 deletions

View file

@ -2119,7 +2119,7 @@ retry:
ptepa += NBPDR;
pde++;
}
pmap_invalidate_all(kernel_pmap);
pmap_invalidate_all(pmap);
}
}

View file

@ -2264,7 +2264,7 @@ retry:
ptepa += NBPDR;
ptepindex += 1;
}
pmap_invalidate_all(kernel_pmap);
pmap_invalidate_all(pmap);
}
}