DragonFly BSD
DragonFly commits List (threaded) for 2013-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: kernel: Optimize pmap_invalidate_range()


From: Francois Tigeot <ftigeot@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 18 Jul 2013 14:30:50 -0700 (PDT)

commit d2f7c303e0e14f546c73f89a28a4ff7f46cb84fe
Author: François Tigeot <ftigeot@wolfpond.org>
Date:   Thu Jul 18 23:25:01 2013 +0200

    kernel: Optimize pmap_invalidate_range()
    
    * No need to use wbinvd here, we only have to invalidate TLB entries
      and not regular CPU caches
    
    * There is no need to drop all TLB caches either, only invalidate a few
      page mappings on all cpus
    
    * Use pmap->pm_active to only signal the CPUs where the pmap is in use

Summary of changes:
 sys/cpu/x86_64/include/cpufunc.h      | 20 ++++++++++++++++++++
 sys/platform/pc64/x86_64/mp_machdep.c | 12 ++++++++++++
 sys/platform/pc64/x86_64/pmap.c       |  4 +---
 3 files changed, 33 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d2f7c303e0e14f546c73f89a28a4ff7f46cb84fe


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]