Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Jun 2009 01:33:51 +0000 (UTC)
From:      Jeff Roberson <jeff@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/kern kern_switch.c src/sys/sys sched.h
Message-ID:  <200906250134.n5P1Y3lE002865@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jeff        2009-06-25 01:33:51 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             kern_switch.c 
    sys/sys              sched.h 
  Log:
  SVN rev 194936 on 2009-06-25 01:33:51Z by jeff
  
   - Use DPCPU for SCHED_STATS.  This is somewhat awkward because the
     offset of the stat is not known until link time so we must emit a
     function to call SYSCTL_ADD_PROC rather than using SYSCTL_PROC
     directly.
   - Eliminate the atomic from SCHED_STAT_INC now that it's using per-cpu
     variables.  Sched stats are always incremented while we're holding
     a spinlock so no further protection is required.
  
  Reviewed by:    sam
  
  Revision  Changes    Path
  1.146     +37 -18    src/sys/kern/kern_switch.c
  1.42      +18 -5     src/sys/sys/sched.h



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906250134.n5P1Y3lE002865>