diff options
| author | ad <ad@NetBSD.org> | 2020-03-08 15:00:31 +0000 |
|---|---|---|
| committer | ad <ad@NetBSD.org> | 2020-03-08 15:00:31 +0000 |
| commit | bfab1fe2ffed2e4d8500c5fc0c4f6e47dc7ffb30 (patch) | |
| tree | 1a7dfd75dbe39d1fe6ea8746175aa6ea2bfe6305 /sys | |
| parent | 76b4308478ef82e9bbc7e41ce090fa58a5344f07 (diff) | |
sched_preempted(): always clear LP_TELEPORT.
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/kern/kern_runq.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/kern_runq.c b/sys/kern/kern_runq.c index b0478b873fd..7b0132a40d5 100644 --- a/sys/kern/kern_runq.c +++ b/sys/kern/kern_runq.c @@ -1,4 +1,4 @@ -/* $NetBSD: kern_runq.c,v 1.62 2020/01/25 15:09:54 ad Exp $ */ +/* $NetBSD: kern_runq.c,v 1.63 2020/03/08 15:00:31 ad Exp $ */ /*- * Copyright (c) 2019, 2020 The NetBSD Foundation, Inc. @@ -56,7 +56,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: kern_runq.c,v 1.62 2020/01/25 15:09:54 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_runq.c,v 1.63 2020/03/08 15:00:31 ad Exp $"); #include "opt_dtrace.h" @@ -908,6 +908,7 @@ sched_preempted(struct lwp *l) if ((tspc->spc_flags & flags) == flags && sched_migratable(l, tci)) { l->l_target_cpu = tci; + l->l_pflag &= ~LP_TELEPORT; return; } tci = tci->ci_sibling[CPUREL_CORE]; |
