mirror of
https://github.com/reactos/reactos.git
synced 2025-05-08 19:27:00 +00:00
[NTOS:PO] Report correct CPU frequency in CurrentMhz
Also add some relevant FIXME comments. CORE-13206
This commit is contained in:
parent
93aa5801dc
commit
4c78b2c38d
1 changed files with 4 additions and 1 deletions
|
@ -863,11 +863,14 @@ NtPowerInformation(IN POWER_INFORMATION_LEVEL PowerInformationLevel,
|
||||||
if (OutputBufferLength < sizeof(PROCESSOR_POWER_INFORMATION))
|
if (OutputBufferLength < sizeof(PROCESSOR_POWER_INFORMATION))
|
||||||
return STATUS_BUFFER_TOO_SMALL;
|
return STATUS_BUFFER_TOO_SMALL;
|
||||||
|
|
||||||
|
/* FIXME: return structures for all processors */
|
||||||
|
|
||||||
_SEH2_TRY
|
_SEH2_TRY
|
||||||
{
|
{
|
||||||
|
/* FIXME: some values are hardcoded */
|
||||||
PowerInformation->Number = 0;
|
PowerInformation->Number = 0;
|
||||||
PowerInformation->MaxMhz = 1000;
|
PowerInformation->MaxMhz = 1000;
|
||||||
PowerInformation->CurrentMhz = 1000;
|
PowerInformation->CurrentMhz = KeGetCurrentPrcb()->MHz;
|
||||||
PowerInformation->MhzLimit = 1000;
|
PowerInformation->MhzLimit = 1000;
|
||||||
PowerInformation->MaxIdleState = 0;
|
PowerInformation->MaxIdleState = 0;
|
||||||
PowerInformation->CurrentIdleState = 0;
|
PowerInformation->CurrentIdleState = 0;
|
||||||
|
|
Loading…
Reference in a new issue