[BACK]Return to intr.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / arch / x86 / x86

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

Diff for /src/sys/arch/x86/x86/intr.c between version 1.101.2.3 and 1.101.2.4

version 1.101.2.3, 2018/03/16 13:17:56 version 1.101.2.4, 2018/03/26 11:19:39
Line 1839  intr_get_affinity(struct intrsource *isp
Line 1839  intr_get_affinity(struct intrsource *isp
                 return;                  return;
         }          }
   
           KASSERTMSG(isp->is_handlers != NULL,
               "Don't get affinity for the device which is not established.");
   
         ci = isp->is_handlers->ih_cpu;          ci = isp->is_handlers->ih_cpu;
         if (ci == NULL) {          if (ci == NULL) {
                 kcpuset_zero(cpuset);                  kcpuset_zero(cpuset);
Line 1891  intr_set_affinity(struct intrsource *isp
Line 1894  intr_set_affinity(struct intrsource *isp
         }          }
   
         ih = isp->is_handlers;          ih = isp->is_handlers;
           KASSERTMSG(ih != NULL,
               "Don't set affinity for the device which is not established.");
   
         oldci = ih->ih_cpu;          oldci = ih->ih_cpu;
         if (newci == oldci) /* nothing to do */          if (newci == oldci) /* nothing to do */
                 return 0;                  return 0;
Line 1957  intr_is_affinity_intrsource(struct intrs
Line 1963  intr_is_affinity_intrsource(struct intrs
   
         KASSERT(mutex_owned(&cpu_lock));          KASSERT(mutex_owned(&cpu_lock));
   
           /*
            * The device is already pci_intr_alloc'ed, however it is not
            * established yet.
            */
           if (isp->is_handlers == NULL)
                   return false;
   
         ci = isp->is_handlers->ih_cpu;          ci = isp->is_handlers->ih_cpu;
         KASSERT(ci != NULL);          KASSERT(ci != NULL);
   

Legend:
Removed from v.1.101.2.3  
changed lines
  Added in v.1.101.2.4

CVSweb <webmaster@jp.NetBSD.org>