From e8f853a1974e3e292125e999c15d2604525b0fd5 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Tue, 9 Jan 2024 11:21:00 +0200 Subject: [PATCH] Kernel: After device updates, reschedule instead of sleeping --- kernel/kernel/FS/DevFS/FileSystem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/kernel/FS/DevFS/FileSystem.cpp b/kernel/kernel/FS/DevFS/FileSystem.cpp index cfd3e57eb1..a0207018d4 100644 --- a/kernel/kernel/FS/DevFS/FileSystem.cpp +++ b/kernel/kernel/FS/DevFS/FileSystem.cpp @@ -6,6 +6,7 @@ #include #include #include +#include #include #include @@ -48,8 +49,7 @@ namespace Kernel } ); s_instance->m_device_lock.unlock(); - - Kernel::SystemTimer::get().sleep(1); + Scheduler::get().reschedule(); } }, nullptr );