port-sparc/54718 (sparc install hangs since recent scheduler changes)
This commit is contained in:
parent
9840bf8aa7
commit
65e19688a4
@ -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 @@ softint_trigger(uintptr_t machdep)
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user