This fix rebooting a GENERIC.MP kernel on SP machines because unpeg is out
of the loop in smr_thread().
-/* $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 <art@openbsd.org>
*
{
struct proc *p = curproc;
- KASSERT(ISSET(p->p_flag, P_CPUPEG));
-
atomic_clearbits_int(&p->p_flag, P_CPUPEG);
}