mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Move entirely to using only platform-profile
throttle_thermal_policy is not ideal anymore and may be removed from kernel in the future.
This commit is contained in:
@@ -1,24 +1,24 @@
|
||||
use rog_platform::platform::ThrottlePolicy;
|
||||
use rog_platform::platform::PlatformProfile;
|
||||
use rog_profiles::FanCurvePU;
|
||||
|
||||
use crate::{FanType, Profile};
|
||||
|
||||
impl From<Profile> for ThrottlePolicy {
|
||||
impl From<Profile> for PlatformProfile {
|
||||
fn from(value: Profile) -> Self {
|
||||
match value {
|
||||
Profile::Balanced => ThrottlePolicy::Balanced,
|
||||
Profile::Performance => ThrottlePolicy::Performance,
|
||||
Profile::Quiet => ThrottlePolicy::Quiet
|
||||
Profile::Balanced => PlatformProfile::Balanced,
|
||||
Profile::Performance => PlatformProfile::Performance,
|
||||
Profile::Quiet => PlatformProfile::Quiet
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl From<ThrottlePolicy> for Profile {
|
||||
fn from(value: ThrottlePolicy) -> Self {
|
||||
impl From<PlatformProfile> for Profile {
|
||||
fn from(value: PlatformProfile) -> Self {
|
||||
match value {
|
||||
ThrottlePolicy::Balanced => Profile::Balanced,
|
||||
ThrottlePolicy::Performance => Profile::Performance,
|
||||
ThrottlePolicy::Quiet => Profile::Quiet
|
||||
PlatformProfile::Balanced => Profile::Balanced,
|
||||
PlatformProfile::Performance => Profile::Performance,
|
||||
PlatformProfile::Quiet => Profile::Quiet
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user