Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
c683b98d
Commit
c683b98d
authored
Sep 12, 2012
by
James Eder
Committed by
Alexandre Julliard
Sep 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Return as many PROCESSOR_POWER_INFORMATIONs as there are CPUs.
parent
8c5f5b49
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
11 deletions
+18
-11
nt.c
dlls/ntdll/nt.c
+18
-11
No files found.
dlls/ntdll/nt.c
View file @
c683b98d
...
...
@@ -2325,20 +2325,27 @@ NTSTATUS WINAPI NtPowerInformation(
*
ExecutionState
=
ES_USER_PRESENT
;
return
STATUS_SUCCESS
;
}
case
ProcessorInformation
:
{
PPROCESSOR_POWER_INFORMATION
cpu_power
=
lpOutputBuffer
;
case
ProcessorInformation
:
{
PROCESSOR_POWER_INFORMATION
*
cpu_power
=
lpOutputBuffer
;
int
i
;
WARN
(
"semi-stub: ProcessorInformation
\n
"
);
if
(
nOutputBufferSize
<
sizeof
(
PROCESSOR_POWER_INFORMATION
))
if
((
lpOutputBuffer
==
NULL
)
||
(
nOutputBufferSize
==
0
))
return
STATUS_INVALID_PARAMETER
;
if
((
nOutputBufferSize
/
sizeof
(
PROCESSOR_POWER_INFORMATION
))
<
NtCurrentTeb
()
->
Peb
->
NumberOfProcessors
)
return
STATUS_BUFFER_TOO_SMALL
;
cpu_power
->
Number
=
NtCurrentTeb
()
->
Peb
->
NumberOfProcessors
;
cpu_power
->
MaxMhz
=
cpuHz
/
1000000
;
cpu_power
->
CurrentMhz
=
cpuHz
/
1000000
;
cpu_power
->
MhzLimit
=
cpuHz
/
1000000
;
cpu_power
->
MaxIdleState
=
0
;
/* FIXME */
cpu_power
->
CurrentIdleState
=
0
;
/* FIXME */
return
STATUS_SUCCESS
;
}
for
(
i
=
0
;
i
<
NtCurrentTeb
()
->
Peb
->
NumberOfProcessors
;
i
++
)
{
cpu_power
[
i
].
Number
=
i
;
cpu_power
[
i
].
MaxMhz
=
cpuHz
/
1000000
;
cpu_power
[
i
].
CurrentMhz
=
cpuHz
/
1000000
;
cpu_power
[
i
].
MhzLimit
=
cpuHz
/
1000000
;
cpu_power
[
i
].
MaxIdleState
=
0
;
/* FIXME */
cpu_power
[
i
].
CurrentIdleState
=
0
;
/* FIXME */
}
return
STATUS_SUCCESS
;
}
default:
/* FIXME: Needed by .NET Framework */
WARN
(
"Unimplemented NtPowerInformation action: %d
\n
"
,
InformationLevel
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment