mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 21:37:58 +03:00
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:
parent
eca85f2050
commit
4ce326205e
Notes:
sideshowbarker
2024-07-17 07:41:17 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/4ce326205e Pull-request: https://github.com/SerenityOS/serenity/pull/15046 Reviewed-by: https://github.com/awesomekling ✅
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user