Source-Changes-HG archive

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

[src/netbsd-7]: src/sys/kern Pull up following revision(s) (requested by skrl...



details:   https://anonhg.NetBSD.org/src/rev/39f2927802f8
branches:  netbsd-7
changeset: 799743:39f2927802f8
user:      snj <snj%NetBSD.org@localhost>
date:      Tue Jan 05 22:16:44 2016 +0000

description:
Pull up following revision(s) (requested by skrll in ticket #1056):
        sys/kern/kern_lock.c: revision 1.156
Allow sleeping in the idle lwp if the cpu isn't running yet.
OK'ed by rmind a while ago.

diffstat:

 sys/kern/kern_lock.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r df183d83fd8c -r 39f2927802f8 sys/kern/kern_lock.c
--- a/sys/kern/kern_lock.c      Tue Jan 05 22:13:55 2016 +0000
+++ b/sys/kern/kern_lock.c      Tue Jan 05 22:16:44 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_lock.c,v 1.155 2013/09/14 20:24:22 martin Exp $   */
+/*     $NetBSD: kern_lock.c,v 1.155.4.1 2016/01/05 22:16:44 snj Exp $  */
 
 /*-
  * Copyright (c) 2002, 2006, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_lock.c,v 1.155 2013/09/14 20:24:22 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_lock.c,v 1.155.4.1 2016/01/05 22:16:44 snj Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
@@ -78,7 +78,8 @@
        } while (pctr != lwp_pctr());
 
        reason = NULL;
-       if (idle && !cold) {
+       if (idle && !cold &&
+           kcpuset_isset(kcpuset_running, cpu_index(curcpu()))) {
                reason = "idle";
        }
        if (cpu_intr_p()) {



Home | Main Index | Thread Index | Old Index