Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern softint_trigger (slow case): set RESCHED_IDLE too j...
details: https://anonhg.NetBSD.org/src/rev/1d07630b1ed2
branches: trunk
changeset: 465896:1d07630b1ed2
user: ad <ad%NetBSD.org@localhost>
date: Fri Dec 06 18:15:57 2019 +0000
description:
softint_trigger (slow case): set RESCHED_IDLE too just to be consistent.
No functional change.
diffstat:
sys/kern/kern_softint.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 5145fbe3aa7d -r 1d07630b1ed2 sys/kern/kern_softint.c
--- a/sys/kern/kern_softint.c Fri Dec 06 18:03:49 2019 +0000
+++ b/sys/kern/kern_softint.c Fri Dec 06 18:15:57 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_softint.c,v 1.53 2019/12/03 05:07:48 riastradh Exp $ */
+/* $NetBSD: kern_softint.c,v 1.54 2019/12/06 18:15:57 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.53 2019/12/03 05:07:48 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_softint.c,v 1.54 2019/12/06 18:15:57 ad Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@@ -692,7 +692,8 @@
ci->ci_data.cpu_softints |= machdep;
l = ci->ci_onproc;
if (l == ci->ci_data.cpu_idlelwp) {
- atomic_or_uint(&ci->ci_want_resched, RESCHED_UPREEMPT);
+ atomic_or_uint(&ci->ci_want_resched,
+ RESCHED_IDLE | RESCHED_UPREEMPT);
} else {
/* MI equivalent of aston() */
cpu_signotify(l);
Home |
Main Index |
Thread Index |
Old Index