feat: HWP scaling, C1E, closed-loop thermal governor for Intel CPUs

This commit is contained in:
daniel committed 2026-07-05 10:51:11 +02:00
1 parent daa17a325f
commit 70702a21b0
19 files changed
+903 -9

No files matched your search

+4
View File
@@ -19,6 +19,7 @@
#include <Hal/Apic/IoApic.hpp>
#include <Hal/Apic/Pic.hpp>
#include <Timekeeping/ApicTimer.hpp>
#include <Hal/CpuPower.hpp>
#include <Drivers/Graphics/IntelGPU.hpp>
#include <Drivers/PS2/PS2Controller.hpp>
#include <Graphics/Framebuffer.hpp>
@@ -435,6 +436,9 @@ namespace Hal {
}
reinitProgress(0x04); // PAT
Hal::InitializePAT();
// HWP enable and POWER_CTL reset across S3; re-apply them and
// bump the policy epoch so APs re-apply on their next tick.
Hal::CpuPower::ReapplyAfterWake();
reinitProgress(0x05); // PIC
Hal::DisableLegacyPic();
reinitProgress(0x06); // Local APIC