feat: further kernel power and power optimizations

This commit is contained in:
2026-04-21 20:51:12 +02:00
parent 7d6f001659
commit 38b1f8a7ef
31 changed files with 895 additions and 52 deletions
+22
View File
@@ -0,0 +1,22 @@
/*
* InputEvents.hpp
* Shared input activity event source
* Copyright (c) 2026 Daniel Hammer
*/
#pragma once
#include <cstdint>
namespace Drivers::InputEvents {
// Monotonic serial incremented after mouse or keyboard state changes.
uint64_t GetSerial();
// Notify latency-sensitive input activity and wake input waiters.
void NotifyActivity();
// Wait until the serial differs from observedSerial or timeoutMs elapses.
// timeoutMs == 0 is a poll; timeoutMs == UINT64_MAX waits indefinitely.
uint64_t WaitForChange(uint64_t observedSerial, uint64_t timeoutMs);
}