summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2024-07-08 14:46:48 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2024-07-08 14:46:48 +0000
commit31f5a15902a5a1bb8e354696e7eb9102ad9539b1 (patch)
tree599c51411a71e78553b015b2a49ac97ac0d2cdc6 /sys/dev
parent69d9547e9e5b0ad9c26bc3a3e1c712e464f3c336 (diff)
Introduce sched_unpeg_curproc() to abstract the current implementation.
ok kettenis@, mlarkin@, miod@, claudio@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/kstat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/kstat.c b/sys/dev/kstat.c
index 073f61a2c34..5b41743395e 100644
--- a/sys/dev/kstat.c
+++ b/sys/dev/kstat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kstat.c,v 1.2 2022/01/31 05:09:17 dlg Exp $ */
+/* $OpenBSD: kstat.c,v 1.3 2024/07/08 14:46:47 mpi Exp $ */
/*
* Copyright (c) 2020 David Gwynne <dlg@openbsd.org>
@@ -593,7 +593,7 @@ kstat_cpu_enter(void *p)
void
kstat_cpu_leave(void *p)
{
- atomic_clearbits_int(&curproc->p_flag, P_CPUPEG);
+ sched_unpeg_curproc();
}
void