feat: further kernel power and power optimizations

This commit is contained in:
daniel committed 2026-04-21 20:51:12 +02:00
1 parent 7d6f001659
commit 38b1f8a7ef
31 files changed
+895 -52

No files matched your search

+5
View File
@@ -116,6 +116,11 @@ namespace Sched {
// timeoutMs == 0 means wait indefinitely.
void BlockOnObject(void* object, uint64_t timeoutMs = 0);
// Atomically check a condition under the scheduler lock and block only if
// it still holds. This prevents lost wakeups for edge-triggered waiters.
bool BlockOnObjectIf(void* object, uint64_t timeoutMs,
bool (*shouldBlock)(void*), void* context);
// BSP-only scheduler housekeeping: wake expired sleepers and reclaim
// terminated process resources.
void RunBspMaintenance();