cvs commit: src/sys/compat/ndis subr_ntoskrnl.c

Bill Paul wpaul at FreeBSD.org
Fri Oct 21 22:15:21 PDT 2005


wpaul       2005-10-22 05:15:20 UTC

  FreeBSD src repository

  Modified files:
    sys/compat/ndis      subr_ntoskrnl.c 
  Log:
  Make the multiple DPC threads an option, and create only one by default.
  This avoids the need for sched_bind() in the default case so that you
  can start up the NDIS subsystem at boot time when only CPU 0 is running.
  
  There are potentially ways to fix it so that the DPC threads aren't
  started until after the other CPUs are launched, but doing it correctly
  is tricky. You need to defer the startup of the ntoskrnl subsystem
  (ntoskrnl_libinit()), not just defer ndis_attach().
  
  For now, I don't think it will make much difference having just the
  single DPC thread (I started out with just one anyway). Note that this
  turns the KeSetTargetProcessorDpc() routine into a no-op, since the
  CPU number in struct kdpc is now ignored.
  
  Revision  Changes    Path
  1.77      +31 -2     src/sys/compat/ndis/subr_ntoskrnl.c


More information about the cvs-src mailing list