[BACK]Return to cpuset.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / common / lib / libc / sys

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

Diff for /src/common/lib/libc/sys/cpuset.c between version 1.3 and 1.4

version 1.3, 2008/06/15 23:45:51 version 1.4, 2008/06/16 01:41:21
Line 78  _cpuset_zero(cpuset_t *c)
Line 78  _cpuset_zero(cpuset_t *c)
 }  }
   
 int  int
 _cpuset_isset(const cpuset_t *c, int i)  _cpuset_isset(const cpuset_t *c, cpuid_t i)
 {  {
         const int j = i >> CPUSET_SHIFT;          const int j = i >> CPUSET_SHIFT;
   
Line 88  _cpuset_isset(const cpuset_t *c, int i)
Line 88  _cpuset_isset(const cpuset_t *c, int i)
 }  }
   
 int  int
 _cpuset_set(cpuset_t *c, int i)  _cpuset_set(cpuset_t *c, cpuid_t i)
 {  {
         const int j = i >> CPUSET_SHIFT;          const int j = i >> CPUSET_SHIFT;
   
Line 99  _cpuset_set(cpuset_t *c, int i)
Line 99  _cpuset_set(cpuset_t *c, int i)
 }  }
   
 int  int
 _cpuset_clr(cpuset_t *c, int i)  _cpuset_clr(cpuset_t *c, cpuid_t i)
 {  {
         const int j = i >> CPUSET_SHIFT;          const int j = i >> CPUSET_SHIFT;
   
Line 149  _cpuset_destroy(cpuset_t *c)
Line 149  _cpuset_destroy(cpuset_t *c)
   
 #ifdef _KERNEL  #ifdef _KERNEL
 size_t  size_t
 _cpuset_nused(const cpuset_t *c)  kcpuset_nused(const cpuset_t *c)
 {  {
         return c->nused;          return c->nused;
 }  }
   
 void  void
 _cpuset_copy(cpuset_t *d, const cpuset_t *s)  kcpuset_copy(cpuset_t *d, const cpuset_t *s)
 {  {
   
         KASSERT(d->size == s->size);          KASSERT(d->size == s->size);
Line 164  _cpuset_copy(cpuset_t *d, const cpuset_t
Line 164  _cpuset_copy(cpuset_t *d, const cpuset_t
 }  }
   
 void  void
 _cpuset_use(cpuset_t *c)  kcpuset_use(cpuset_t *c)
 {  {
   
         atomic_inc_uint(&c->nused);          atomic_inc_uint(&c->nused);
 }  }
   
 void  void
 _cpuset_unuse(cpuset_t *c, cpuset_t **lst)  kcpuset_unuse(cpuset_t *c, cpuset_t **lst)
 {  {
   
         if (atomic_dec_uint_nv(&c->nused) != 0)          if (atomic_dec_uint_nv(&c->nused) != 0)

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

CVSweb <webmaster@jp.NetBSD.org>