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.
This commit is contained in:
Idan Horowitz 2022-08-27 18:59:13 +03:00
parent eca85f2050
commit 4ce326205e
Notes: sideshowbarker 2024-07-17 07:41:17 +09:00

View File

@ -915,7 +915,6 @@ extern RecursiveSpinlock g_profiling_lock;
template<IteratorFunction<Process&> 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;