Move reading the current CPU mask in pmap_lazyfix() to where the thread
is protected from migrating to another CPU. Approved by: sam (mentor) MFC after: 4 weeks
This commit is contained in:
parent
5e81937a6f
commit
0e26edfd43
@ -1276,7 +1276,7 @@ pmap_lazyfix_self(u_int mymask)
|
||||
static void
|
||||
pmap_lazyfix(pmap_t pmap)
|
||||
{
|
||||
u_int mymask = PCPU_GET(cpumask);
|
||||
u_int mymask;
|
||||
u_int mask;
|
||||
register u_int spins;
|
||||
|
||||
@ -1289,6 +1289,7 @@ pmap_lazyfix(pmap_t pmap)
|
||||
#else
|
||||
lazyptd = vtophys(pmap->pm_pdir);
|
||||
#endif
|
||||
mymask = PCPU_GET(cpumask);
|
||||
if (mask == mymask) {
|
||||
lazymask = &pmap->pm_active;
|
||||
pmap_lazyfix_self(mymask);
|
||||
|
Loading…
x
Reference in New Issue
Block a user