From c2570265b4019ebc99fd1d70246ac685bef26cd6 Mon Sep 17 00:00:00 2001 From: Nick Hudson Date: Sat, 16 Oct 2021 17:47:47 +0100 Subject: [PATCH 3/7] revert the 2015 change I made: Allow sleeping in the idle lwp if the cpu isn't running yet. OK'ed by rmind a while ago. --- sys/kern/kern_lock.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/kern/kern_lock.c b/sys/kern/kern_lock.c index 40557427de86..c0c9d8adaf9e 100644 --- a/sys/kern/kern_lock.c +++ b/sys/kern/kern_lock.c @@ -89,8 +89,7 @@ assert_sleepable(void) } while (pctr != lwp_pctr()); reason = NULL; - if (idle && !cold && - kcpuset_isset(kcpuset_running, cpu_index(curcpu()))) { + if (idle && !cold) { reason = "idle"; } if (cpu_intr_p()) { -- 2.25.1