Fix the handling of of the kernel change from "quiet" to "low-power"

A coming kernel change will convert "quiet" to "low-power" due to how
platform_profile can now have multiple registered handlers.
(kernel 6.14 est)

Fixes #609
This commit is contained in:
Luke Jones
2025-02-14 19:38:02 +13:00
parent 2c006699f2
commit 4dd29952c8
13 changed files with 146 additions and 71 deletions

View File

@@ -99,6 +99,10 @@ pub trait Platform {
#[zbus(property)]
fn set_profile_quiet_epp(&self, epp: CPUEPP) -> zbus::Result<()>;
/// PlatformProfileChoices property
#[zbus(property)]
fn platform_profile_choices(&self) -> zbus::Result<Vec<PlatformProfile>>;
/// ThrottlePolicy property
#[zbus(property)]
fn platform_profile(&self) -> zbus::Result<PlatformProfile>;