[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.168 and 1.169

version 1.168, 2008/08/11 02:46:40 version 1.169, 2008/08/11 02:48:42
Line 180  TAILQ_HEAD(,pool_cache) pool_cache_head 
Line 180  TAILQ_HEAD(,pool_cache) pool_cache_head 
     TAILQ_HEAD_INITIALIZER(pool_cache_head);      TAILQ_HEAD_INITIALIZER(pool_cache_head);
   
 int pool_cache_disable;         /* global disable for caching */  int pool_cache_disable;         /* global disable for caching */
 static pcg_t pcg_dummy;         /* zero sized: always empty, yet always full */  static const pcg_t pcg_dummy;   /* zero sized: always empty, yet always full */
   
 static bool     pool_cache_put_slow(pool_cache_cpu_t *, int,  static bool     pool_cache_put_slow(pool_cache_cpu_t *, int,
                                     void *);                                      void *);
Line 2210  pool_cache_cpu_init1(struct cpu_info *ci
Line 2210  pool_cache_cpu_init1(struct cpu_info *ci
         cc->cc_cpuindex = index;          cc->cc_cpuindex = index;
         cc->cc_hits = 0;          cc->cc_hits = 0;
         cc->cc_misses = 0;          cc->cc_misses = 0;
         cc->cc_current = &pcg_dummy;          cc->cc_current = __UNCONST(&pcg_dummy);
         cc->cc_previous = &pcg_dummy;          cc->cc_previous = __UNCONST(&pcg_dummy);
   
         pc->pc_cpus[index] = cc;          pc->pc_cpus[index] = cc;
 }  }
Line 2666  pool_cache_xcall(pool_cache_t pc)
Line 2666  pool_cache_xcall(pool_cache_t pc)
         mutex_enter(&pc->pc_lock);          mutex_enter(&pc->pc_lock);
         cc = pc->pc_cpus[curcpu()->ci_index];          cc = pc->pc_cpus[curcpu()->ci_index];
         cur = cc->cc_current;          cur = cc->cc_current;
         cc->cc_current = &pcg_dummy;          cc->cc_current = __UNCONST(&pcg_dummy);
         prev = cc->cc_previous;          prev = cc->cc_previous;
         cc->cc_previous = &pcg_dummy;          cc->cc_previous = __UNCONST(&pcg_dummy);
         if (cur != &pcg_dummy) {          if (cur != &pcg_dummy) {
                 if (cur->pcg_avail == cur->pcg_size) {                  if (cur->pcg_avail == cur->pcg_size) {
                         list = &pc->pc_fullgroups;                          list = &pc->pc_fullgroups;

Legend:
Removed from v.1.168  
changed lines
  Added in v.1.169

CVSweb <webmaster@jp.NetBSD.org>