Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
3794c6b9
Commit
3794c6b9
authored
Sep 15, 2009
by
Eric Pouech
Committed by
Alexandre Julliard
Sep 22, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Implement basic support for processor power information.
parent
57f714f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
nt.c
dlls/ntdll/nt.c
+15
-1
No files found.
dlls/ntdll/nt.c
View file @
3794c6b9
...
...
@@ -773,7 +773,7 @@ NTSTATUS WINAPI NtSetIntervalProfile(
}
static
SYSTEM_CPU_INFORMATION
cached_sci
;
static
DWORD
cpuHz
;
static
ULONGLONG
cpuHz
=
1000000000
;
/* default to a 1GHz */
#define AUTH 0x68747541
/* "Auth" */
#define ENTI 0x69746e65
/* "enti" */
...
...
@@ -1798,6 +1798,20 @@ NTSTATUS WINAPI NtPowerInformation(
*
ExecutionState
=
ES_USER_PRESENT
;
return
STATUS_SUCCESS
;
}
case
ProcessorInformation
:
{
PPROCESSOR_POWER_INFORMATION
cpu_power
=
lpOutputBuffer
;
WARN
(
"semi-stub: ProcessorInformation
\n
"
);
if
(
nOutputBufferSize
<
sizeof
(
PROCESSOR_POWER_INFORMATION
))
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
;
}
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