Source-Changes-HG archive

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

[src/trunk]: src/sys/kern port-sparc/54718 (sparc install hangs since recent ...



details:   https://anonhg.NetBSD.org/src/rev/50bee88321cf
branches:  trunk
changeset: 1005030:50bee88321cf
user:      ad <ad%NetBSD.org@localhost>
date:      Mon Nov 25 17:24:59 2019 +0000

description:
port-sparc/54718 (sparc install hangs since recent scheduler changes)

diffstat:

 sys/kern/kern_softint.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (36 lines):

diff -r 672f5a0cad72 -r 50bee88321cf sys/kern/kern_softint.c
--- a/sys/kern/kern_softint.c   Mon Nov 25 16:57:09 2019 +0000
+++ b/sys/kern/kern_softint.c   Mon Nov 25 17:24:59 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_softint.c,v 1.50 2019/11/23 19:42:52 ad Exp $     */
+/*     $NetBSD: kern_softint.c,v 1.51 2019/11/25 17:24:59 ad Exp $     */
 
 /*-
  * Copyright (c) 2007, 2008, 2019 The NetBSD Foundation, Inc.
@@ -170,7 +170,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_softint.c,v 1.50 2019/11/23 19:42:52 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_softint.c,v 1.51 2019/11/25 17:24:59 ad Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
@@ -689,14 +689,14 @@
        struct cpu_info *ci;
        lwp_t *l;
 
-       l = curlwp;
-       ci = l->l_cpu;
+       ci = curcpu();
        ci->ci_data.cpu_softints |= machdep;
+       l = ci->ci_data.cpu_onproc;
        if (l == ci->ci_data.cpu_idlelwp) {
                atomic_or_uint(&ci->ci_want_resched, RESCHED_UPREEMPT);
        } else {
                /* MI equivalent of aston() */
-               lwp_need_userret(l);
+               cpu_signotify(l);
        }
 }
 



Home | Main Index | Thread Index | Old Index