[BACK]Return to subr_pool.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / kern

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/kern/subr_pool.c between version 1.21.2.3 and 1.24

version 1.21.2.3, 1999/06/24 16:14:35 version 1.24, 1999/04/29 17:47:19
Line 37 
Line 37 
  * POSSIBILITY OF SUCH DAMAGE.   * POSSIBILITY OF SUCH DAMAGE.
  */   */
   
   #include "opt_poollog.h"
   
 #include <sys/param.h>  #include <sys/param.h>
 #include <sys/systm.h>  #include <sys/systm.h>
 #include <sys/proc.h>  #include <sys/proc.h>
Line 313  pool_create(size, align, ioff, nitems, w
Line 315  pool_create(size, align, ioff, nitems, w
                         pool_destroy(pp);                          pool_destroy(pp);
                         return (NULL);                          return (NULL);
                 }                  }
                 int s;  
         }          }
                 s = splhigh();  
   
                 splx(s);  
         return (pp);          return (pp);
 }  }
   
Line 1051  pool_catchup(pp)
Line 1050  pool_catchup(pp)
 void  void
 pool_setlowat(pp, n)  pool_setlowat(pp, n)
         pool_handle_t   pp;          pool_handle_t   pp;
         int s, n;          int n;
 {  {
         int error;          int error;
   
         simple_lock(&pp->pr_slock);          simple_lock(&pp->pr_slock);
                 s = splhigh();  
   
                 splx(s);  
         pp->pr_minitems = n;          pp->pr_minitems = n;
         pp->pr_minpages = (n == 0)          pp->pr_minpages = (n == 0)
                 ? 0                  ? 0

Legend:
Removed from v.1.21.2.3  
changed lines
  Added in v.1.24

CVSweb <webmaster@jp.NetBSD.org>