cvs commit: src/sys/pci if_xl.c

Bruce M Simpson bms at FreeBSD.org
Thu Jul 8 19:28:23 PDT 2004


bms         2004-07-09 02:28:23 UTC

  FreeBSD src repository

  Modified files:
    sys/pci              if_xl.c 
  Log:
  Further improve locking in xl(4):
  
   - Avoid an additional lock acquire/release when leaving xl_intr(), by
     changing xl_start*() to xl_start*_locked(), and calling the appropriate
     routine by chip revision (as the DMA descriptors are different).
  
   - Simplify the appropriate routines now that they are called with the
     lock held.
  
  This should save a significant amount of CPU cycles spent on servicing
  each interrupt for both UP and SMP whilst remaining MPSAFE.
  
  Tested by:      rwatson
  
  Revision  Changes    Path
  1.178     +34 -21    src/sys/pci/if_xl.c


More information about the cvs-src mailing list