Skip to content

Commit 7d92f43

Browse files
committed
Update performance-mode device path
Recent updates in the surface-sam (formerly surface-acpi) driver have changed the device path of the performance-mode device from /sys/bus/platform/devices/MSHW0107 to /sys/bus/platform/devices/surface_sam_sid_perfmode The device attribute and access stays the same.
1 parent 23a3a6e commit 7d92f43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sys/perf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ pub struct Device {
7070

7171
impl Device {
7272
pub fn open() -> Result<Self> {
73-
Device::open_path("/sys/devices/platform/MSHW0107:00")
73+
Device::open_path("/sys/bus/platform/devices/surface_sam_sid_perfmode")
7474
}
7575

7676
pub fn open_path<P: AsRef<Path>>(path: P) -> Result<Self> {

0 commit comments

Comments
 (0)