Skip to content

Commit

Permalink
Add power limit policy and client sample driver (#1152)
Browse files Browse the repository at this point in the history
This PR adds power limit policy and client driver as samples to use OS native power limit interfaces.
  • Loading branch information
AlbertGuan12345 authored Apr 2, 2024
1 parent 13d4792 commit 04e03ee
Show file tree
Hide file tree
Showing 24 changed files with 3,236 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@

# Energy Efficiency
/pofx/WDF/ @microsoft/ee-devs
/powerlimit/ @microsoft/ee-devs
/simbatt/ @microsoft/ee-devs
/thermal/ @microsoft/ee-devs

Expand Down
2 changes: 2 additions & 0 deletions exclusions.csv
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ audio\acx\samples\audiocodec\driver,*,,22621,Only NI: error C1083: Cannot open i
general\dchu\osrfx2_dchu_extension_loose,*|x64,,22621,Only NI: Only x64: Fails to build
general\dchu\osrfx2_dchu_extension_tight,*|x64,,22621,Only NI: Only x64: Fails to build
prm,*,,22621,Only NI: Not supported on NI.
powerlimit\plclient,*,,22621,Only build on Ge and above.
powerlimit\plpolicy,*,,22621,Only build on Ge and above.
17 changes: 17 additions & 0 deletions powerlimit/plclient/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
page_type: sample
description: "Demonstrates a simulated power limit device."
languages:
- cpp
products:
- windows
- windows-wdk
---

# plclient - Simulated Power Limit Client Driver

This sample is a driver for a simulated power limit client device.

## Universal Windows Driver Compliant

The plclient sample provides the source code for a power limit device that supports power limit management by the operating system.
10 changes: 10 additions & 0 deletions powerlimit/plclient/plclient.asl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
DefinitionBlock ("ACPITABL.DAT", "SSDT", 0x02, "MSFT", "simulatr", 0x1) {
Device (\_SB.SOC0) {
Name (_HID, "PLCL0001")
Name (_UID, 1)
}
Device (\_SB.GPU1) {
Name (_HID, "PLCL0001")
Name (_UID, 2)
}
}
Loading

0 comments on commit 04e03ee

Please sign in to comment.