diff options
author | 2019-01-28 11:49:04 +0000 | |
---|---|---|
committer | 2019-01-28 11:49:04 +0000 | |
commit | 100aa75baf5ff72745afbaef2314713978ebbcad (patch) | |
tree | e3c98d7bf16213cf444930295fda1fed81c0b576 /sys/kern/kern_clock.c | |
parent | Stop accounting/updating priorities for Idle threads. (diff) | |
download | wireguard-openbsd-100aa75baf5ff72745afbaef2314713978ebbcad.tar.xz wireguard-openbsd-100aa75baf5ff72745afbaef2314713978ebbcad.zip |
Simplify by using `spc' since we already have it, no behavior change.
Diffstat (limited to 'sys/kern/kern_clock.c')
-rw-r--r-- | sys/kern/kern_clock.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c index e773752aee7..ee701945966 100644 --- a/sys/kern/kern_clock.c +++ b/sys/kern/kern_clock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_clock.c,v 1.97 2018/10/17 12:25:38 bluhm Exp $ */ +/* $OpenBSD: kern_clock.c,v 1.98 2019/01/28 11:49:04 mpi Exp $ */ /* $NetBSD: kern_clock.c,v 1.34 1996/06/09 04:51:03 briggs Exp $ */ /*- @@ -400,8 +400,7 @@ statclock(struct clockframe *frame) * ~~16 Hz is best */ if (schedhz == 0) { - if ((++curcpu()->ci_schedstate.spc_schedticks & 3) == - 0) + if ((++spc->spc_schedticks & 3) == 0) schedclock(p); } } |