kernel - Fix i386 wire_count panics (2)
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 26 Sep 2012 18:03:32 +0000 (11:03 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 26 Sep 2012 18:03:32 +0000 (11:03 -0700)
* Optimize wakeup case.

sys/platform/pc32/i386/pmap.c

index d7a6fe6..d60cabd 100644 (file)
@@ -1649,7 +1649,7 @@ void
 pmap_drop(pmap_t pmap)
 {
        --pmap->pm_count;
-       if ((pmap->pm_count & 0x7FFFFFFF) == 0)
+       if (pmap->pm_count == (int)0x80000000)
                wakeup(pmap);
 }