Source-Changes-HG archive

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

[src/trunk]: src/sys Minor correction to previous.



details:   https://anonhg.NetBSD.org/src/rev/eecc1b17558a
branches:  trunk
changeset: 846564:eecc1b17558a
user:      ad <ad%NetBSD.org@localhost>
date:      Fri Nov 22 20:04:03 2019 +0000

description:
Minor correction to previous.

diffstat:

 sys/arch/x86/x86/x86_tlb.c |  7 +++----
 sys/kern/sys_select.c      |  8 ++++----
 2 files changed, 7 insertions(+), 8 deletions(-)

diffs (58 lines):

diff -r 269aac9e5ec0 -r eecc1b17558a sys/arch/x86/x86/x86_tlb.c
--- a/sys/arch/x86/x86/x86_tlb.c        Fri Nov 22 19:48:58 2019 +0000
+++ b/sys/arch/x86/x86/x86_tlb.c        Fri Nov 22 20:04:03 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: x86_tlb.c,v 1.9 2019/11/21 21:48:33 ad Exp $   */
+/*     $NetBSD: x86_tlb.c,v 1.10 2019/11/22 20:04:03 ad Exp $  */
 
 /*-
  * Copyright (c) 2008-2019 The NetBSD Foundation, Inc.
@@ -40,7 +40,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: x86_tlb.c,v 1.9 2019/11/21 21:48:33 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: x86_tlb.c,v 1.10 2019/11/22 20:04:03 ad Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -264,8 +264,7 @@
        tp = (pmap_tlb_packet_t *)ci->ci_pmap_data;
 
        /* Whole address flush will be needed if PTE_G is set. */
-       CTASSERT(PTE_G == (uint16_t)PTE_G);
-       tp->tp_global |= ((pte & PTE_G) != 0);;
+       tp->tp_global |= ((pte & PTE_G) != 0);
        count = tp->tp_count;
 
        if (count < TP_MAXVA && va != (vaddr_t)-1LL) {
diff -r 269aac9e5ec0 -r eecc1b17558a sys/kern/sys_select.c
--- a/sys/kern/sys_select.c     Fri Nov 22 19:48:58 2019 +0000
+++ b/sys/kern/sys_select.c     Fri Nov 22 20:04:03 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sys_select.c,v 1.49 2019/11/21 21:42:30 ad Exp $       */
+/*     $NetBSD: sys_select.c,v 1.50 2019/11/22 20:04:03 ad Exp $       */
 
 /*-
  * Copyright (c) 2007, 2008, 2009, 2010, 2019 The NetBSD Foundation, Inc.
@@ -84,7 +84,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_select.c,v 1.49 2019/11/21 21:42:30 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_select.c,v 1.50 2019/11/22 20:04:03 ad Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -114,9 +114,9 @@
 
 /*
  * Per-cluster state for select()/poll().  For a system with fewer
- * than 32 CPUs, this gives us per-CPU clusters.
+ * than 64 CPUs, this gives us per-CPU clusters.
  */
-#define        SELCLUSTERS     32
+#define        SELCLUSTERS     64
 #define        SELCLUSTERMASK  (SELCLUSTERS - 1)
 
 typedef struct selcluster {



Home | Main Index | Thread Index | Old Index