Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/sparc64 blast_dcache() does the right thing...



details:   https://anonhg.NetBSD.org/src/rev/fc25ae210de5
branches:  trunk
changeset: 762606:fc25ae210de5
user:      mrg <mrg%NetBSD.org@localhost>
date:      Thu Feb 24 08:42:30 2011 +0000

description:
blast_dcache() does the right thing for MP or !MP, so just use it.

diffstat:

 sys/arch/sparc64/sparc64/pmap.c |  10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)

diffs (31 lines):

diff -r 639f3b0a183d -r fc25ae210de5 sys/arch/sparc64/sparc64/pmap.c
--- a/sys/arch/sparc64/sparc64/pmap.c   Thu Feb 24 08:40:06 2011 +0000
+++ b/sys/arch/sparc64/sparc64/pmap.c   Thu Feb 24 08:42:30 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.269 2010/11/12 07:59:27 uebayasi Exp $      */
+/*     $NetBSD: pmap.c,v 1.270 2011/02/24 08:42:30 mrg Exp $   */
 /*
  *
  * Copyright (C) 1996-1999 Eduardo Horvath.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.269 2010/11/12 07:59:27 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.270 2011/02/24 08:42:30 mrg Exp $");
 
 #undef NO_VCACHE /* Don't forget the locked TLB in dostart */
 #define        HWREF
@@ -1975,11 +1975,7 @@
         * XXXMRG: couldn't we do something less severe here, and
         * only flush the right context on each CPU?
         */
-#ifdef MULTIPROCESSOR
-       smp_blast_dcache(pmap_cpus_active);
-#else
-       sp_blast_dcache(dcache_size, dcache_line_size);
-#endif
+       blast_dcache();
 }
 
 /*



Home | Main Index | Thread Index | Old Index