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 Simplify a condition.



details:   https://anonhg.NetBSD.org/src/rev/132fa53223cb
branches:  trunk
changeset: 333478:132fa53223cb
user:      nakayama <nakayama%NetBSD.org@localhost>
date:      Wed Nov 05 13:50:50 2014 +0000

description:
Simplify a condition.

diffstat:

 sys/arch/sparc64/sparc64/cache.h |  14 ++++++--------
 1 files changed, 6 insertions(+), 8 deletions(-)

diffs (29 lines):

diff -r c7b2985d1b88 -r 132fa53223cb sys/arch/sparc64/sparc64/cache.h
--- a/sys/arch/sparc64/sparc64/cache.h  Wed Nov 05 13:30:11 2014 +0000
+++ b/sys/arch/sparc64/sparc64/cache.h  Wed Nov 05 13:50:50 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cache.h,v 1.25 2014/11/05 13:30:11 nakayama Exp $ */
+/*     $NetBSD: cache.h,v 1.26 2014/11/05 13:50:50 nakayama Exp $ */
 
 /*
  * Copyright (c) 2011 Matthew R. Green
@@ -130,14 +130,12 @@
 static __inline__ void
 sp_tlb_flush_pte(vaddr_t va, int ctx)
 {
-       if (CPU_ISSUN4U || CPU_ISSUN4US) {
-               if (CPU_IS_USIII_UP() || CPU_IS_SPARC64_V_UP())
-                       sp_tlb_flush_pte_usiii(va, ctx);
-               else
-                       sp_tlb_flush_pte_us(va, ctx);
-       }
-       else if (CPU_ISSUN4V)
+       if (CPU_ISSUN4V)
                sp_tlb_flush_pte_sun4v(va, ctx);
+       else if (CPU_IS_USIII_UP() || CPU_IS_SPARC64_V_UP())
+               sp_tlb_flush_pte_usiii(va, ctx);
+       else
+               sp_tlb_flush_pte_us(va, ctx);
 }
 
 static __inline__ void



Home | Main Index | Thread Index | Old Index