Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Relax an assertion



details:   https://anonhg.NetBSD.org/src/rev/27ed1a0294c8
branches:  trunk
changeset: 764390:27ed1a0294c8
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Apr 19 07:12:59 2011 +0000

description:
Relax an assertion

diffstat:

 sys/kern/subr_percpu.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 3666c2ae8fb8 -r 27ed1a0294c8 sys/kern/subr_percpu.c
--- a/sys/kern/subr_percpu.c    Mon Apr 18 23:22:42 2011 +0000
+++ b/sys/kern/subr_percpu.c    Tue Apr 19 07:12:59 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_percpu.c,v 1.11 2011/04/14 05:53:53 matt Exp $    */
+/*     $NetBSD: subr_percpu.c,v 1.12 2011/04/19 07:12:59 martin Exp $  */
 
 /*-
  * Copyright (c)2007,2008 YAMAMOTO Takashi,
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_percpu.c,v 1.11 2011/04/14 05:53:53 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_percpu.c,v 1.12 2011/04/19 07:12:59 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/cpu.h>
@@ -90,7 +90,7 @@
        percpu_cpu_t * const newpcc = p2;
        percpu_cpu_t * const pcc = cpu_percpu(ci);
 
-       KASSERT(ci == curcpu());
+       KASSERT(ci == curcpu() || !mp_online);
 
        /*
         * swap *pcc and *newpcc unless anyone has beaten us.



Home | Main Index | Thread Index | Old Index