fix: reduce idle CPU wakeups and deferred-work polling

This commit is contained in:
daniel committed 2026-08-15 16:50:36 +02:00
1 parent f7677ac3f1
commit 788b662d44
10 files changed
+109 -14

No files matched your search

+6 -1
View File
@@ -11,9 +11,14 @@ namespace Timekeeping {
// Initialize the APIC timer: calibrate against PIT, start periodic interrupts
void ApicTimerInitialize();
// Initialize the APIC timer on an AP (calibrate + start, no IRQ handler registration)
// Initialize the scheduler timer on an AP using the BSP calibration.
void ApicTimerInitializeAP();
// Idle APs are woken for runnable work by the reschedule IPI, so their
// periodic scheduler timer can remain masked until a process is dispatched.
void ApicTimerEnterApIdle();
void ApicTimerLeaveApIdle();
// Reinitialize the APIC timer after S3 resume using the previously
// calibrated tick rate. Skips PIT calibration and IRQ registration
// (both survive in RAM). Only reprograms the timer hardware registers.