Skip to content

Commit 8fd4a91

Browse files
committed
Update perfmode device path
The performance mode device path has changed in recent versions of the Surface Aggregator Module, specifically with the introduction of a dedicated device type and bus. Update it here accordingly.
1 parent cea7441 commit 8fd4a91

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/bus/platform/devices/surface_sam_sid_perfmode")
73+
Device::open_path("/sys/bus/ssam/devices/03:01:00:02")
7474
}
7575

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

0 commit comments

Comments
 (0)