Skip to content

Commit

Permalink
kernel - Fix i386 wire_count panics (2)
Browse files Browse the repository at this point in the history
* Optimize wakeup case.
  • Loading branch information
Matthew Dillon committed Sep 26, 2012
1 parent 3321ee0 commit 22c4e11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/platform/pc32/i386/pmap.c
Expand Up @@ -1649,7 +1649,7 @@ void
pmap_drop(pmap_t pmap) pmap_drop(pmap_t pmap)
{ {
--pmap->pm_count; --pmap->pm_count;
if ((pmap->pm_count & 0x7FFFFFFF) == 0) if (pmap->pm_count == (int)0x80000000)
wakeup(pmap); wakeup(pmap);
} }


Expand Down

0 comments on commit 22c4e11

Please sign in to comment.