Kernel: Cleanup disk cache

Add missing include and cleanup code calling automatic disk sync.
This commit is contained in:
Bananymous 2024-11-03 20:27:12 +02:00
parent f4be37700f
commit a3f41fd4d9
2 changed files with 2 additions and 4 deletions

View File

@ -2,6 +2,7 @@
#include <BAN/Array.h>
#include <BAN/ByteSpan.h>
#include <BAN/Vector.h>
#include <kernel/Memory/Types.h>
namespace Kernel

View File

@ -87,10 +87,7 @@ namespace Kernel
while (true)
{
SystemTimer::get().sleep_ms(10'000);
LockGuard _(s_instance->m_device_lock);
s_instance->m_should_sync = true;
s_instance->m_sync_thread_blocker.unblock();
s_instance->initiate_sync(false);
}
}, nullptr, sync_process
)));