Kernel: Cleanup disk cache
Add missing include and cleanup code calling automatic disk sync.
This commit is contained in:
parent
f4be37700f
commit
a3f41fd4d9
|
@ -2,6 +2,7 @@
|
|||
|
||||
#include <BAN/Array.h>
|
||||
#include <BAN/ByteSpan.h>
|
||||
#include <BAN/Vector.h>
|
||||
#include <kernel/Memory/Types.h>
|
||||
|
||||
namespace Kernel
|
||||
|
|
|
@ -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
|
||||
)));
|
||||
|
|
Loading…
Reference in New Issue