cvs commit: src/sys/ia64/ia64 pmap.c

Marcel Moolenaar marcel at FreeBSD.org
Thu Jun 7 16:04:24 UTC 2007


marcel      2007-06-07 16:04:23 UTC

  FreeBSD src repository

  Modified files:
    sys/ia64/ia64        pmap.c 
  Log:
  Eliminate pmap_install(), which was used to wrap pmap_switch() and
  grab sched_lock. This would serialize calls to pmap_switch from
  cpu_switch(). With the introduction of thread_lock, this is not
  possible anymore, because thread_lock is not a single lock. It
  varies.  Secondly and most importantly, it's not needed at all. The
  only requirement for pmap_switch() is that it's not preempted
  while in the middle of updating the CPU and PCPU. In other words,
  it's a critical region. No locking required.
  
  Revision  Changes    Path
  1.189     +43 -55    src/sys/ia64/ia64/pmap.c


More information about the cvs-all mailing list