Remove hardcoded throttle value
All checks were successful
Builds / ExectOS (amd64, debug) (push) Successful in 32s
Builds / ExectOS (i686, debug) (push) Successful in 30s
Builds / ExectOS (amd64, release) (push) Successful in 32s
Builds / ExectOS (i686, release) (push) Successful in 36s

This commit is contained in:
2026-06-16 12:53:07 +02:00
parent 55eb3047e3
commit cc288f5417
2 changed files with 4 additions and 1 deletions

View File

@@ -14,6 +14,9 @@
#include <ketypes.h>
#define POWER_PERFORMANCE_SCALE 100
/* C/C++ specific code */
#ifndef __XTOS_ASSEMBLER__

View File

@@ -28,7 +28,7 @@ PO::Idle::InitializeProcessorIdleState(IN OUT PKPROCESSOR_CONTROL_BLOCK Prcb)
/* Initialize default power state */
Prcb->PowerState.Idle0TimeLimit = 0xFFFFFFFF;
Prcb->PowerState.CurrentThrottle = 100;
Prcb->PowerState.CurrentThrottle = POWER_PERFORMANCE_SCALE;
Prcb->PowerState.CurrentThrottleIndex = 0;
Prcb->PowerState.IdleFunction = Idle0Function;