diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2005-05-26 18:10:41 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2005-05-26 18:10:41 +0000 |
commit | fbbd40270d5f052b4c08b62bae07889515323161 (patch) | |
tree | f07da812d209f8ffa1f565f27227e5080e8fedbb /sys/kern/sched_bsd.c | |
parent | 6678f10ad7265b8e5edc50e3f4eb5e7e0ef22631 (diff) |
Fix yield() to change p_stat from SONPROC to SRUN.
yield() is not used anywhere yet, that's why we didn't notice this.
Noticed by tedu@ who just started using it.
Diffstat (limited to 'sys/kern/sched_bsd.c')
-rw-r--r-- | sys/kern/sched_bsd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/sched_bsd.c b/sys/kern/sched_bsd.c index ff39ea3d1ad..3bfe54b9bcd 100644 --- a/sys/kern/sched_bsd.c +++ b/sys/kern/sched_bsd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sched_bsd.c,v 1.2 2005/05/25 23:17:47 niklas Exp $ */ +/* $OpenBSD: sched_bsd.c,v 1.3 2005/05/26 18:10:40 art Exp $ */ /* $NetBSD: kern_synch.c,v 1.37 1996/04/22 01:38:37 christos Exp $ */ /*- @@ -381,6 +381,7 @@ yield() SCHED_LOCK(s); p->p_priority = p->p_usrpri; + p->p_stat = SRUN; setrunqueue(p); p->p_stats->p_ru.ru_nvcsw++; mi_switch(s); |