From: mpi Date: Mon, 8 Jul 2024 16:15:42 +0000 (+0000) Subject: Remove the KASSERT() in sched_unpeg_curproc(). X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=6fc6c6cc6c159adccaada504c7c3e8f2bd1e7a05;p=openbsd Remove the KASSERT() in sched_unpeg_curproc(). This fix rebooting a GENERIC.MP kernel on SP machines because unpeg is out of the loop in smr_thread(). --- diff --git a/sys/kern/kern_sched.c b/sys/kern/kern_sched.c index a2e9ffa76b7..3cf220c7f82 100644 --- a/sys/kern/kern_sched.c +++ b/sys/kern/kern_sched.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_sched.c,v 1.98 2024/07/08 14:46:47 mpi Exp $ */ +/* $OpenBSD: kern_sched.c,v 1.99 2024/07/08 16:15:42 mpi Exp $ */ /* * Copyright (c) 2007, 2008 Artur Grabowski * @@ -651,8 +651,6 @@ sched_unpeg_curproc(void) { struct proc *p = curproc; - KASSERT(ISSET(p->p_flag, P_CPUPEG)); - atomic_clearbits_int(&p->p_flag, P_CPUPEG); }