From 4ce326205ecff513e09b104e36935726d6ad422d Mon Sep 17 00:00:00 2001 From: Idan Horowitz Date: Sat, 27 Aug 2022 18:59:13 +0300 Subject: [PATCH] Kernel: Stop verifying interrupts are disabled in Process::for_each This is a left-over from back when we didn't have any locking on the global Process list, nor did we have SMP support, so this acted as some kind of locking mechanism. We now have proper locks around the Process list, so this is no longer relevant. --- Kernel/Process.h | 1 - 1 file changed, 1 deletion(-) diff --git a/Kernel/Process.h b/Kernel/Process.h index 71d40572f0..b783d8c7a0 100644 --- a/Kernel/Process.h +++ b/Kernel/Process.h @@ -915,7 +915,6 @@ extern RecursiveSpinlock g_profiling_lock; template Callback> inline void Process::for_each(Callback callback) { - VERIFY_INTERRUPTS_DISABLED(); Process::all_instances().with([&](auto const& list) { for (auto it = list.begin(); it != list.end();) { auto& process = *it;